diff options
| author | Max Audron <audron@cocaine.farm> | 2023-08-11 16:51:35 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2023-08-11 16:51:35 +0200 |
| commit | 5828af9fc19e18dc85e49fcc1a251a7eb25d909c (patch) | |
| tree | c70c3e52237c08d3fdcb2f1269c524c25e3feeb8 /modules/hetzner/default.nix | |
init
Diffstat (limited to 'modules/hetzner/default.nix')
| -rw-r--r-- | modules/hetzner/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/hetzner/default.nix b/modules/hetzner/default.nix new file mode 100644 index 0000000..692ee20 --- /dev/null +++ b/modules/hetzner/default.nix @@ -0,0 +1,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 + ''; + }; +} |
