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/vultr | |
init
Diffstat (limited to 'modules/vultr')
| -rw-r--r-- | modules/vultr/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/modules/vultr/default.nix b/modules/vultr/default.nix new file mode 100644 index 0000000..765c03d --- /dev/null +++ b/modules/vultr/default.nix @@ -0,0 +1,45 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + users.users."root".initialHashedPassword = "$6$R6JH.y368Bn6V$q710R4zQDK8vH7.L8JRAmFZwQW2H.3A00DPtKXFJb0nem87JlgYmD6UJbJ4vhP.f9UmvmqAgur8qMWEsBsErI/"; + users.users."root".hashedPassword = config.users.users."root".initialHashedPassword; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + boot.loader.grub.devices = [ "/dev/vda" ]; + + fileSystems = { + "/" = { + device = "/dev/vda1"; + autoResize = true; + fsType = "ext4"; + }; + }; + + # kubernetes = { + # role = "agent"; + # taints = { + # role = "ns:NoSchedule"; + # }; + # }; + + networking = { + domain = "ns.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 + ''; + }; +} |
