NixOS#
Links#
Packages#
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/systemupdate the system:
nixos-rebuild switch --upgrade
Cleanup#
delete generations from the current profile
delete all except current:
nix-env --delete-generations olddelete generations more than 14 days ago:
nix-env --delete-generations 14dkeep last 2 generations, along with any newer than current:
nix-env --delete-generations +2
after removing old generations run garbage collector:
nix-store --gcdelete unreachable store objects:
nix-collect-garbage -dalso see
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