From 2c4c5494327324490ca0859fe65fbcbf3ece7e0f Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Sat, 4 Jan 2025 20:09:28 +0100 Subject: feat(hosts/server3): init --- hosts/by-name/server3/hardware.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 hosts/by-name/server3/hardware.nix (limited to 'hosts/by-name/server3/hardware.nix') diff --git a/hosts/by-name/server3/hardware.nix b/hosts/by-name/server3/hardware.nix new file mode 100644 index 0000000..a6e4e40 --- /dev/null +++ b/hosts/by-name/server3/hardware.nix @@ -0,0 +1,15 @@ +{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"]; + nixpkgs.hostPlatform = "x86_64-linux"; +} -- cgit 1.4.1