about summary refs log tree commit diff
path: root/nix/machines/hardware
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-12-08 15:50:27 -0800
committerFranck Cuny <franck@fcuny.net>2024-12-08 15:50:27 -0800
commitac0ab13688225fc17246ca0fc86c00c02f04105e (patch)
tree63682137f69c0591a7bf2e94e3991aba4db3bd9b /nix/machines/hardware
parentfix conflict (diff)
downloadworld-ac0ab13688225fc17246ca0fc86c00c02f04105e.tar.gz
move the configuration for hetzner under machines
Diffstat (limited to 'nix/machines/hardware')
-rw-r--r--nix/machines/hardware/vm-hetzner.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/nix/machines/hardware/vm-hetzner.nix b/nix/machines/hardware/vm-hetzner.nix
new file mode 100644
index 0000000..89a92a9
--- /dev/null
+++ b/nix/machines/hardware/vm-hetzner.nix
@@ -0,0 +1,24 @@
+{ 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";
+    };
+  };
+}