diff --git a/hosts/plover/default.nix b/hosts/plover/default.nix index bc8be990..6f8bb2aa 100644 --- a/hosts/plover/default.nix +++ b/hosts/plover/default.nix @@ -9,7 +9,10 @@ let in { imports = [ - ./hardware-configuration.nix + # Since this will be rarely configured, make sure to import the appropriate + # hardware modules depending on the hosting provider (and even just the + # server). + ./modules/hardware/hetzner-cloud-cx21.nix # The users for this host. (lib.getUser "nixos" "admin") diff --git a/hosts/plover/hardware-configuration.nix b/hosts/plover/modules/hardware/hetzner-cloud-cx21.nix similarity index 77% rename from hosts/plover/hardware-configuration.nix rename to hosts/plover/modules/hardware/hetzner-cloud-cx21.nix index 22e270ac..3e7d5790 100644 --- a/hosts/plover/hardware-configuration.nix +++ b/hosts/plover/modules/hardware/hetzner-cloud-cx21.nix @@ -3,10 +3,6 @@ # Most of the filesystems listed here are supposed to be overriden to default # settings of whatever image format configuration this host system will import # from nixos-generators. -# -# Take note that this hardware configuration is mostly considered with Hetzner -# Cloud hardware server settings in mind. Be sure to replace it whenever you -# update your cloud provider. { imports = [ (modulesPath + "/profiles/qemu-guest.nix") @@ -35,6 +31,17 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - networking.useDHCP = false; - networking.interfaces.ens3.useDHCP = true; + networking = { + useDHCP = false; + enableIPv6 = true; + + dhcpcd.persistent = true; + + interfaces = { + ens3 = { + useDHCP = true; + }; + ens10.useDHCP = true; + }; + }; }