From ae3fa667bda75f11881c9209dc67226f98bcfd95 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Thu, 17 Sep 2026 11:05:45 +0200 Subject: 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. --- hosts/template/hardware-configuration.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 hosts/template/hardware-configuration.nix (limited to 'hosts/template/hardware-configuration.nix') diff --git a/hosts/template/hardware-configuration.nix b/hosts/template/hardware-configuration.nix new file mode 100644 index 0000000..a074323 --- /dev/null +++ b/hosts/template/hardware-configuration.nix @@ -0,0 +1,26 @@ +# Placeholder. Replace this entire file with the real output of: +# nixos-generate-config --root /mnt +# run against the target machine after partitioning and mounting it. +# The commented example below shows the shape of a real generated file — +# do not uncomment and use these values as-is, they describe no real disk. +{ modulesPath, ... }: +{ + imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; + + # boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ]; + # boot.initrd.kernelModules = [ ]; + # boot.kernelModules = [ ]; + # boot.extraModulePackages = [ ]; + # + # fileSystems."/" = { + # device = "/dev/disk/by-uuid/CHANGEME"; + # fsType = "ext4"; + # }; + # + # fileSystems."/boot" = { + # device = "/dev/disk/by-uuid/CHANGEME"; + # fsType = "vfat"; + # }; + # + # swapDevices = [ ]; +} -- cgit v1.3