Skip to content

dav009/nixtalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

package manager

This is a recorded introduction talk about Nix and its package manager. You can find the slides and samples in this repo.

nix build nixpkgs#hello
nix run nixpkgs#cowsay -- hola
nix-shell --pure -p go_1_18
nix-shell --pure -p go_1_18 which
nix profile install nixpkgs#cowsay
nix-shell --pure -p python310 aws python310Packages.numpy

with flakes:

nix run github:dav009/nixsample

nix develop github:dav009/nixsample
nix build github:dav009/nixsample
nix build github:dav009/nixsample#docker

derivations

nix build -f sample.nix
nix show-derivation -f sample3.nix
nix repl

repl

:l <nixpkgs>
nixpkgs = import <nixpkgs>
:docs builtins.readFile
python3.withPackages(p : [p.numpy])
:b python3.withPackages(p : [p.numpy])
:b python3.withPackages(p : [p.requests])
:b python3.withPackages(p : [p.numpy p.requests])
:b mkShell{name="some";packages=[jq];}

misc

nix-store --gc

flakes

nix flake show
nix develop
nix run .
# templates
nix flake show  github:NixOS/templates
nix flake init -t github:NixOS/templates#go-hello
nix flake init -t github:nix-community/gomod2nix#app

ec2 instance

installation instructions: https://nixos.org/download.html
mkdir -p ~/.config/nix/
nano ~/.config/nix/nix.conf
add : `experimental-features = nix-command flakes`
nix profile install nixpkgs#docker

About

"Introduction to Nix package manager" Talk samples and slides

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published