Add and fix wireguard on hummelberg
This commit is contained in:
parent
f4c6c70d67
commit
2a34c9d427
2 changed files with 12 additions and 1 deletions
|
@ -12,4 +12,15 @@
|
|||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
networking.wireguard.enable = true;
|
||||
networking.wireguard.interfaces = let
|
||||
meta = import ../../meta;
|
||||
vnetworks = meta.network.virtual;
|
||||
vnetworkName = "mgmt";
|
||||
in {
|
||||
"wg-${vnetworkName}" =
|
||||
pkgs.lib.qois.wireguard.makeInterface config.networking.hostName
|
||||
vnetworkName vnetworks.${vnetworkName};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
endpoint = hostconf.endpoint;
|
||||
|
||||
allowedIPs = [ hostconf.v4.ip ];
|
||||
persistantKeepalive = hostconf.persistentKeepalive;
|
||||
persistentKeepalive = hostconf.persistentKeepalive;
|
||||
});
|
||||
|
||||
makeInterface = (hostName: netname: netconfig: {
|
||||
|
|
Loading…
Add table
Reference in a new issue