diff options
Diffstat (limited to 'hosts/carmel')
-rw-r--r-- | hosts/carmel/default.nix | 17 | ||||
-rw-r--r-- | hosts/carmel/networking.nix | 17 |
2 files changed, 18 insertions, 16 deletions
diff --git a/hosts/carmel/default.nix b/hosts/carmel/default.nix index ecc8362..7e48b5d 100644 --- a/hosts/carmel/default.nix +++ b/hosts/carmel/default.nix @@ -4,6 +4,7 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ./sound.nix + ./networking.nix ../common/desktop # In order to unlock the root disk remotely ../common/system/boot-ssh.nix @@ -21,22 +22,6 @@ hardware.opengl.driSupport = true; - # Use systemd-networkd for networking - systemd.network = { - enable = true; - networks = { - enp9s0 = { - matchConfig.Name = "enp9s0"; - networkConfig = { DHCP = "yes"; }; - extraConfig = '' - [DHCPv4] - UseDNS=yes - UseDomains=yes - ''; - }; - }; - }; - # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave diff --git a/hosts/carmel/networking.nix b/hosts/carmel/networking.nix new file mode 100644 index 0000000..f4a1c6f --- /dev/null +++ b/hosts/carmel/networking.nix @@ -0,0 +1,17 @@ +{ ... }: { + # Use systemd-networkd for networking + systemd.network = { + enable = true; + networks = { + enp9s0 = { + matchConfig.Name = "enp9s0"; + networkConfig = { DHCP = "yes"; }; + extraConfig = '' + [DHCPv4] + UseDNS=yes + UseDomains=yes + ''; + }; + }; + }; +} |