From d9ab6c7ea59d29af3ae8c29c7367fe0e8808f5db Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 25 Dec 2024 18:25:51 +0100 Subject: refactor(hosts): Use a `by-name` structure and construct all host depended values This allows us to outsource the host-handling from the `flake.nix` file. --- hosts/by-name/server1/hardware.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 hosts/by-name/server1/hardware.nix (limited to 'hosts/by-name/server1/hardware.nix') diff --git a/hosts/by-name/server1/hardware.nix b/hosts/by-name/server1/hardware.nix new file mode 100644 index 0000000..9abc64c --- /dev/null +++ b/hosts/by-name/server1/hardware.nix @@ -0,0 +1,14 @@ +{modulesPath, ...}: { + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + (modulesPath + "/profiles/headless.nix") + ]; + + vhack.disko = { + enable = true; + # FIXME: Find a better way to specify the disk + disk = "/dev/vda"; + }; + boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"]; + boot.initrd.kernelModules = []; +} -- cgit 1.4.1