A modular configuration for NixOS using flakes.
βββ flake.lock
βββ flake.nix
βββ hosts
βΒ Β βββ default
βββ modules
βΒ Β βββ driver
βΒ Β βββ home-manager
βΒ Β βββ system
βββ overlays
Per-Host system configuration.
- default: The default host configuration used to build the system for the first time.
Contains reusable modules organnized into home-manager and system.
- driver: Hardware specific driver.
- home-manager: Configuration for user-specific programs. Gets built together with the system.
- system: Core system modules.
Contains Nix overlays.
sudo nixos-rebuild switch --impure --flake github:Tim-Raphael/nixos#default
I'm using the --impure flag because the access to a absolute path (/etc/nixos/hardware-configuration.nix) is forbidden in pure evaluation mode.