diff options
Diffstat (limited to 'hosts/template/configuration.nix')
| -rw-r--r-- | hosts/template/configuration.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/hosts/template/configuration.nix b/hosts/template/configuration.nix new file mode 100644 index 0000000..192ccb5 --- /dev/null +++ b/hosts/template/configuration.nix | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # Copy-source only — this directory is never wired into flake.nix as a real | ||
| 2 | # nixosConfigurations output. To bootstrap a real host: | ||
| 3 | # cp -r hosts/template hosts/<real-hostname> | ||
| 4 | # then edit the CHANGEME values below and replace hardware-configuration.nix | ||
| 5 | # with the output of `nixos-generate-config`. See README.md for the full flow. | ||
| 6 | { ... }: | ||
| 7 | { | ||
| 8 | imports = [ ./hardware-configuration.nix ]; | ||
| 9 | |||
| 10 | networking.hostName = "CHANGEME"; | ||
| 11 | |||
| 12 | # UEFI (most modern machines): | ||
| 13 | boot.loader.systemd-boot.enable = true; | ||
| 14 | boot.loader.efi.canTouchEfiVariables = true; | ||
| 15 | # BIOS/legacy alternative — comment out the two lines above and use instead: | ||
| 16 | # boot.loader.grub.enable = true; | ||
| 17 | # boot.loader.grub.device = "/dev/sdX"; | ||
| 18 | |||
| 19 | # Set to the NixOS release in use by the installer at install time | ||
| 20 | # (e.g. "24.05"). This only affects on-disk state format compatibility — | ||
| 21 | # never change it after the fact. | ||
| 22 | system.stateVersion = "CHANGEME"; | ||
| 23 | } | ||
