aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/template/configuration.nix
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <tom@vanderlee.io>2026-09-17 11:05:45 +0200
committerGravatar Tom van der Lee <tom@vanderlee.io>2026-09-17 11:05:45 +0200
commitae3fa667bda75f11881c9209dc67226f98bcfd95 (patch)
tree1c2b16d8a97342fa608a15583ecc85ff0ec968eb /hosts/template/configuration.nix
downloaddesktop-flake-ae3fa667bda75f11881c9209dc67226f98bcfd95.tar.gz
desktop-flake-ae3fa667bda75f11881c9209dc67226f98bcfd95.tar.bz2
desktop-flake-ae3fa667bda75f11881c9209dc67226f98bcfd95.zip
Add cross-platform Nix flake bootstrap
Adds a flake providing shared modules for NixOS and standalone home-manager, a copyable NixOS host template, and the OpenSpec tooling/change scaffolding used to plan this work.
Diffstat (limited to 'hosts/template/configuration.nix')
-rw-r--r--hosts/template/configuration.nix23
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}