In the root directory: sudo nixos-rebuild switch --flake .
, this command will rebuilt whole nixos system and switch to created generation.
Git needs to track all files in root directory, otherwise nix will give errors.
- https://nixos.org/manual/nixos/stable/
- https://nixos.org/manual/nix/stable/introduction
- https://nixos.org/guides/nix-pills/06-our-first-derivation
- https://home-manager-options.extranix.com/
- https://zero-to-nix.com/
- https://edolstra.github.io/pubs/phd-thesis.pdf
- https://github.com/nix-community/disko