My NixOS configuration
| desktop | ||
| hardware | ||
| home | ||
| lib | ||
| modules | ||
| pkgs | ||
| scripts | ||
| services | ||
| system | ||
| templates | ||
| virtualisation | ||
| .editorconfig | ||
| .envrc | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| home-pc.nix | ||
| LICENSE | ||
| README.md | ||
| rpi4.nix | ||
| work-pc.nix | ||
felschr's NixOS configuration
Installation
Clone the configuration into etc/nixos.
On a new machine run:
scripts/setup-partitions
Then move the resulting /etc/nixos/hardware-configuration.nix to ./hardware/<config>.nix and adjust it and the flake.nix accodringly.
Make sure everything was properly recognised. Btrfs mount options might be missing, for example.
To install run the following command where <config> matches outputs.nixosConfigurations.<config> in flake.nix:
nixos-install --flake /etc/nixos#<config>
Updating
Update all or specific locked flake inputs:
nix flake update
nix flake update --update-input <input>
Rebuilding the system
Rebuild the system:
sudo nixos-rebuild switch
Update flake.lock and rebuild the system:
nix flake update && sudo nixos-rebuild switch