summary refs log tree commit diff stats
path: root/hosts/by-name/server3/hardware.nix
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2025-01-04 20:09:28 +0100
committerSilas Schöffel <sils@sils.li>2025-01-04 20:11:38 +0100
commit2c4c5494327324490ca0859fe65fbcbf3ece7e0f (patch)
tree838e46de041f93fa91a906b6be60b98a14eccb18 /hosts/by-name/server3/hardware.nix
parentfeat(pkgs/back): add comments to rss feed (diff)
downloadnixos-server-main.zip
feat(hosts/server3): init HEAD main
Diffstat (limited to 'hosts/by-name/server3/hardware.nix')
-rw-r--r--hosts/by-name/server3/hardware.nix15
1 files changed, 15 insertions, 0 deletions
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";
+}