From 11de044811d357b4b34e87bccfaf5302d0eb6c93 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 5 Aug 2024 09:37:18 -0700 Subject: add a new host: wildcat This is a VPS on hetzner. --- nix/hosts/wildcat/hardware.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 nix/hosts/wildcat/hardware.nix (limited to 'nix/hosts/wildcat/hardware.nix') diff --git a/nix/hosts/wildcat/hardware.nix b/nix/hosts/wildcat/hardware.nix new file mode 100644 index 0000000..cc14f5a --- /dev/null +++ b/nix/hosts/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"; + }; + "/data" = { + device = "/dev/disk/by-id/scsi-0HC_Volume_101115314"; + fsType = "ext4"; + }; + }; +} -- cgit v1.2.3