aboutsummaryrefslogtreecommitdiff
path: root/hosts/carmel/networking.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/networking.nix
parentssh: refactor to a module (diff)
downloadinfra-35e8b8b78d4ad3b8002b922bc0a9f9dcbcf47351.tar.gz
network: move tailscale in modules
Move the networking configuration for the hosts to its own file.
Diffstat (limited to '')
-rw-r--r--hosts/carmel/networking.nix17
1 files changed, 17 insertions, 0 deletions
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
+ '';
+ };
+ };
+ };
+}