summary refs log tree commit diff stats
path: root/hosts/server1/hardware.nix
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-03-19 18:01:16 +0100
committerene <ene@sils.li>2023-03-19 18:01:16 +0100
commit0b55d0277cd341eed9532677036e885c0ae038ed (patch)
tree3f6efd09426199ef55cea36346fb0df7a9b1ed09 /hosts/server1/hardware.nix
parentFix(system/hardware): Use actually needed modules and UUID (diff)
downloadnixos-server-0b55d0277cd341eed9532677036e885c0ae038ed.tar.gz
nixos-server-0b55d0277cd341eed9532677036e885c0ae038ed.zip
Refactor(system/hardware): Move hardware to host
The hardware settings are (somewhat) host specific, and putting them in
`system` just builds the wrong expectations.
Diffstat (limited to 'hosts/server1/hardware.nix')
-rw-r--r--hosts/server1/hardware.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/hosts/server1/hardware.nix b/hosts/server1/hardware.nix
new file mode 100644
index 0000000..9fabafe
--- /dev/null
+++ b/hosts/server1/hardware.nix
@@ -0,0 +1,9 @@
+{modulesPath, ...}: {
+  imports = [
+    (modulesPath + "/profiles/qemu-guest.nix")
+    (modulesPath + "/profiles/headless.nix")
+  ];
+  boot.loader.grub.device = "/dev/vda";
+  boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"];
+  boot.initrd.kernelModules = [];
+}