- Apply system configuration (
nixos-install --flake .#hostname
on live installation media)
sudo nixos-rebuild switch --flake .#sudarshan
- Apply home configuration
nix shell nixpkgs#home-manager
home-manager switch --flake .#lokesh@sudarshan
- Install
nix
(DeterminateSystems, Official)
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
- Copy packages across systems over ssh (package management)
nix-copy-closure --to <username>@<ip> $(type -p <package-name>)
- Template : nix-starter-configs
- Official : nixos, home-manager, flakes
- Examples : misterio77
- Blogs : flakes: tweag, flakes: Li Yang, nix: Li Yang
- Modularize (https://www.youtube.com/watch?v=vYc6IzKvAJQ)
- Enable secure boot (https://github.com/nix-community/lanzaboote/blob/master/docs/QUICK_START.md)
- Use https://github.com/fufexan/nix-gaming