Moved firewall & networking

This commit is contained in:
ari committed 2024-08-18 21:11:59 -04:00
1 parent 4b03beb264
commit 818e0f3ff3
7 files changed
+37 -51

No files matched your search

+1 -9
View File
@@ -15,15 +15,7 @@
user = user;
} // containers))
]
++ (if enableNetworking then
[
(import ./networking.nix {
hostName = hostName;
firewall = firewall;
})
]
else
[ ]) ++ (if enableSSH then
++ (if enableSSH then
[
(import ./ssh.nix {
enableSSHServer = true;
-20
View File
@@ -1,20 +0,0 @@
{ hostName, firewall }:
{ pkgs, ... }:
{
# Define your hostname.
networking.hostName = hostName;
# Enable networking
networking.networkmanager.enable = true;
networking.firewall = firewall;
# NFS Support
services.nfs.server.enable = true;
# Tailscale
services.tailscale.enable = true;
services.tailscale.useRoutingFeatures = "client";
# Disable the flaky nm service
systemd.services.NetworkManager-wait-online.enable = false;
}