about summary refs log tree commit diff
path: root/nix/machines/hardware/vm-hetzner.nix
blob: 89a92a925fbdcc9f06e7abf07d2f7ec267ee554f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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";
    };
  };
}