about summary refs log tree commit diff
path: root/nix/hosts/nixos/wildcat/hardware.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/hosts/nixos/wildcat/hardware.nix')
-rw-r--r--nix/hosts/nixos/wildcat/hardware.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nix/hosts/nixos/wildcat/hardware.nix b/nix/hosts/nixos/wildcat/hardware.nix
new file mode 100644
index 0000000..351c991
--- /dev/null
+++ b/nix/hosts/nixos/wildcat/hardware.nix
@@ -0,0 +1,29 @@
+{ modulesPath, ... }:
+{
+  imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
+
+  boot.initrd.availableKernelModules = [
+    "ata_piix"
+    "uhci_hcd"
+    "xen_blkfront"
+    "vmw_pvscsi"
+  ];
+
+  boot.loader.grub = {
+    enable = true;
+    device = "/dev/sda";
+  };
+
+  boot.initrd.kernelModules = [ "nvme" ];
+
+  fileSystems = {
+    "/" = {
+      device = "/dev/sda1";
+      fsType = "ext4";
+    };
+    "/srv" = {
+      device = "/dev/disk/by-id/scsi-0HC_Volume_101115314";
+      fsType = "ext4";
+    };
+  };
+}