Moved firewall & networking
This commit is contained in:
1 parent
4b03beb264
commit
818e0f3ff3
7 files changed
+37
-51
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user