about summary refs log tree commit diff
path: root/hosts/carmel/default.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-05 17:27:04 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-05 17:27:04 -0700
commit35e8b8b78d4ad3b8002b922bc0a9f9dcbcf47351 (patch)
tree532c717f6a83d19c84d05c0cecd4e90c693bef58 /hosts/carmel/default.nix
parentssh: refactor to a module (diff)
downloadworld-35e8b8b78d4ad3b8002b922bc0a9f9dcbcf47351.tar.gz
network: move tailscale in modules
Move the networking configuration for the hosts to its own file.
Diffstat (limited to 'hosts/carmel/default.nix')
-rw-r--r--hosts/carmel/default.nix17
1 files changed, 1 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