- Apply system configuration (
nixos-install --flake .#hostnameon live installation media)
sudo nixos-rebuild switch --flake .#sudarshan
# nh variant (path isn't required if programs.nh.flake is defined)
nh os switch . -c sudarshan- Apply home configuration
nix shell nixpkgs#home-manager
home-manager switch --flake .#lokesh@sudarshan- Update flake
nix flake update- Install
nix
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>)- To run my configuration of neovim
nix run github:lokeshmohanty/nix?dir=modules/nvim#nvim- Template : nix-starter-configs
- Official : nixos, home-manager, flakes
- Examples : misterio77
- Blogs : flakes: tweag, flakes: Li Yang, nix: Li Yang
- Using secrets
- Modularize (https://www.youtube.com/watch?v=-TRbzkw6Hjs)
- Enable secure boot (https://github.com/nix-community/lanzaboote/blob/master/docs/QUICK_START.md)
- Use https://github.com/fufexan/nix-gaming