aboutsummaryrefslogtreecommitdiff
path: root/nix/hosts/wildcat/hardware.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-08-05 09:37:18 -0700
committerFranck Cuny <franck@fcuny.net>2024-08-05 09:37:18 -0700
commit11de044811d357b4b34e87bccfaf5302d0eb6c93 (patch)
tree050312e0a00e6467fda72095c49d2f2ae0ae567e /nix/hosts/wildcat/hardware.nix
parentadd a linux VM as a new host (diff)
downloadinfra-11de044811d357b4b34e87bccfaf5302d0eb6c93.tar.gz
add a new host: wildcat
This is a VPS on hetzner.
Diffstat (limited to 'nix/hosts/wildcat/hardware.nix')
-rw-r--r--nix/hosts/wildcat/hardware.nix29
1 files changed, 29 insertions, 0 deletions
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";
+ };
+ };
+}