This repository includes the Nix configuration for my laptop.
It includes the following:
- A flake-based configuration (see flake.nix)
- NixOS configuration (see configuration.nix)
- home-manager configuration (see home)
- Custom NixOS modules (see system/modules/)
- Custom home-manager modules (see home/modules/)
- Custom packages (see packages/)
- Do not expect this configuration to work for your system as-is
To switch to a new system+home configuration I usually run:
nix run .#switch
Which does the following:
- Switch to new configuration for home-manager
- Switch to new configuration for NixOS
- Builds configuration using
nom
for more insightful output. - Asks for
sudo
only when system configuration has actually changed. - Plings when actually switching system configuration.
This is similar to using the home-manager
and nixos-rebuild
tools:
$ home-manager switch --flake .
$ nixos-rebuild --flake . switch --use-remote-sudo
To update nixpkgs and others I usually do:
nix flake update