diff options
author | Franck Cuny <franck@fcuny.net> | 2024-12-09 08:28:01 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-12-09 08:28:01 -0800 |
commit | 0998d8294e21cd8bdc6ac94525df0aae51bb4b0d (patch) | |
tree | 06c34041e7fb2f474e046dbb5deec3f23f82f0af /nix/machines/vm-hetzner/hardware.nix | |
parent | set hostname and correct ssh key (diff) | |
download | world-0998d8294e21cd8bdc6ac94525df0aae51bb4b0d.tar.gz |
move each machine into a directory
it will be easier to break down some configs.
Diffstat (limited to 'nix/machines/vm-hetzner/hardware.nix')
-rw-r--r-- | nix/machines/vm-hetzner/hardware.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nix/machines/vm-hetzner/hardware.nix b/nix/machines/vm-hetzner/hardware.nix new file mode 100644 index 0000000..89a92a9 --- /dev/null +++ b/nix/machines/vm-hetzner/hardware.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"; + }; + }; +} |