ModulesNixOS
Base system
Nix settings, garbage collection, and system-wide essentials for every NixOS host.
modules/nixos/base.nix
is imported by the desktop profile.
Nix
- Enables the
nix-command,flakes, andca-derivationsexperimental features. - Garbage collection runs weekly and deletes generations older than 30 days. Before it runs, the system profile is trimmed to the last 10 generations, so the count limit applies first and the age limit second.
Activation diff
An activation script runs nvd on every
nixos-rebuild switch (including dry activations) and prints the package
version changes between the running system and the new one.
Essentials
- Zsh is enabled system-wide so it can be the login shell.
btopandnvdare installed for all users.system.stateVersionis26.05. It controls compatibility defaults, not package versions, and must not be changed when upgrading.
Last updated on