mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Apply nixfmt
This commit is contained in:
parent
407ff4706e
commit
95b6639009
@ -60,7 +60,7 @@
|
|||||||
description = "Wireguard public key for this peer";
|
description = "Wireguard public key for this peer";
|
||||||
};
|
};
|
||||||
|
|
||||||
additionalAllowedIps = mkOption{
|
additionalAllowedIps = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
description = "Additional IPs to add to allowedIPs ";
|
description = "Additional IPs to add to allowedIPs ";
|
||||||
default = [ ];
|
default = [ ];
|
||||||
@ -136,7 +136,7 @@
|
|||||||
|
|
||||||
mkPeerPeer = prefixes: peers: peer: {
|
mkPeerPeer = prefixes: peers: peer: {
|
||||||
allowedIPs = (mkAddresses prefixes peer.localIp)
|
allowedIPs = (mkAddresses prefixes peer.localIp)
|
||||||
++ (lib.concatMap (mkAddresses prefixes) peer.extraIps) ++ (if lib.hasAttr hostName peers then peers.${hostName}.additionalAllowedIps else [ ]);
|
++ (lib.concatMap (mkAddresses prefixes) peer.extraIps) ++ (if lib.hasAttr hostName peers then peers.${hostName}.additionalAllowedIps else [ ]);
|
||||||
persistentKeepalive = 25;
|
persistentKeepalive = 25;
|
||||||
inherit (peer) publicKey endpoint;
|
inherit (peer) publicKey endpoint;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user