https://github.com/dav009/nixtalk
"Introduction to Nix package manager" Talk samples and slides
https://github.com/dav009/nixtalk
nix reproducibility talk
Last synced: 2 months ago
JSON representation
"Introduction to Nix package manager" Talk samples and slides
- Host: GitHub
- URL: https://github.com/dav009/nixtalk
- Owner: dav009
- Created: 2023-05-02T14:08:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-11T11:45:54.000Z (about 2 years ago)
- Last Synced: 2025-02-06T03:32:11.587Z (4 months ago)
- Topics: nix, reproducibility, talk
- Homepage: https://www.youtube.com/watch?v=uj5YU74IUvI
- Size: 24.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## package manager
This is a recorded introduction talk about Nix and its package manager. You can find the slides and samples in this repo.
- Recording: https://www.youtube.com/watch?v=uj5YU74IUvI
```bash
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:
```bash
nix run github:dav009/nixsample
nix develop github:dav009/nixsample
nix build github:dav009/nixsample
nix build github:dav009/nixsample#docker
```## derivations
```bash
nix build -f sample.nix
nix show-derivation -f sample3.nix
nix repl
```## repl
```bash
:l
nixpkgs = import
: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
```bash
nix-store --gc
```## flakes
```bash
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
```bash
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
```