NixOS#
Links#
Packages#
Docker: https://nixos.wiki/wiki/Docker
Tor: https://nixos.wiki/wiki/Tor
Know-how#
get path to nix repository:
nix-instantiate --eval -E '<nixpkgs>'
- also see Nix Search Pathslist available profiles:
nix-env --list-generations --profile /nix/var/nix/profiles/system
update the system:
nixos-rebuild switch --upgrade
Cleanup#
delete generations from the current profile
delete all except current:
nix-env --delete-generations old
delete generations more than 14 days ago:
nix-env --delete-generations 14d
keep last 2 generations, along with any newer than current:
nix-env --delete-generations +2
after removing old generations run garbage collector:
nix-store --gc
delete unreachable store objects:
nix-collect-garbage -d
also see: https://nixos.org/manual/nix/stable/package-management/garbage-collection
Installation#
ZFS#
https://nixos.wiki/wiki/ZFS
https://openzfs.github.io/openzfs-docs/Getting%20Started/NixOS/index.html
https://nixos.org/manual/nixos/stable/index.html#sec-linux-zfs