networking lambdas to enable wakeonlan and hosts file
This commit is contained in:
@@ -10,11 +10,8 @@
|
||||
enable = true;
|
||||
dns = "none";
|
||||
};
|
||||
hosts = {
|
||||
"192.168.1.64" = [ "workstation" ];
|
||||
"192.168.1.69" = [ "server" ];
|
||||
"192.168.1.100" = [ "miniserver" ];
|
||||
};
|
||||
hosts = config.my.ips |> lib.mapAttrs' (hostname: ip: lib.nameValuePair ip [ hostname ]);
|
||||
interfaces."${config.my.interfaces.${config.networking.hostName}}".wakeOnLan.enable = true;
|
||||
};
|
||||
services.dnscrypt-proxy2 = {
|
||||
enable = true;
|
||||
|
||||
@@ -15,7 +15,7 @@ in
|
||||
firewall.allowedUDPPorts = [ port ];
|
||||
nat = {
|
||||
enable = true;
|
||||
externalInterface = "enp2s0";
|
||||
externalInterface = config.my.interfaces.${config.hostName};
|
||||
internalInterfaces = [ "wg0" ];
|
||||
};
|
||||
wireguard.interfaces.wg0 = {
|
||||
|
||||
Reference in New Issue
Block a user