To update nix flake config:
sudo nixos-rebuild switch --flake .#desktop
To update nix inputs (basically a system update/upgrade):
nix flake update
Note: Now beginner friendly. I still have to go and add comments. I recommend a basic understanding of Nix language. See below for resources
A huge amount of credit is given to fufexan. This is heavely based off their dotfiles https://github.com/fufexan/dotfiles
Resources for newbies and myself:
-
Video discussing what nixos and nix flakes are
-
Flake templates:
-
Examples of working nix flakes
- https://github.com/Hoverbear-Consulting/flake/blob/root/traits/base.nix
- https://github.com/Misterio77/nix-starter-configs/blob/main/standard/flake.nix
- https://github.com/Yumasi/nixos-home/blob/main/zsh.nix
- https://github.com/pecigonzalo/malob-nixpkgs/blob/master/flake.nix
- https://github.com/MatthiasBenaets/nixos-config/blob/master/hosts/configuration.nix
- https://github.com/Jomik/dotfiles/blob/0829f512373bd6c2328a20f946019125039d46da/.config/nixpkgs/configurations/zsh.nix
- https://github.com/gilescope/nix-all
-
flakes + ZSH resources
-
NixOS Wiki
-
NixOS Packages and Package Options search
-
Other resources:
-
Conver Gnone settings to nix flake