aboutsummaryrefslogtreecommitdiff
path: root/modules/hetzner/default.nix
blob: 692ee20f969385090964c988c2bd043b550914ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ config, lib, pkgs, modulesPath, ... }:

{
  imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];

  boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
  boot.initrd.kernelModules = [ "nvme" ];
  boot.loader.grub.device = "/dev/sda";

  fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };

  networking = {
    domain = "vapor.systems";
    usePredictableInterfaceNames = false;
    enableIPv6 = true;
    tempAddresses = "disabled";
    interfaces.eth0.useDHCP = true;
    nameservers = [ "1.1.1.1" "8.8.8.8" ];

    dhcpcd.extraConfig = ''
      nohook resolv.conf
    '';
  };
}