From ac0ab13688225fc17246ca0fc86c00c02f04105e Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 8 Dec 2024 15:50:27 -0800 Subject: move the configuration for hetzner under machines --- nix/machines/hardware/vm-hetzner.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 nix/machines/hardware/vm-hetzner.nix (limited to 'nix/machines/hardware') 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"; + }; + }; +} -- cgit 1.4.1