hosts/common/net/vpn: remove unused "extraOptions" argument

This commit is contained in:
Colin 2024-01-15 03:52:31 +00:00
parent 2f04b563d1
commit 0efec20904
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
# - copy the Address, PublicKey, Endpoint from OVPN's config
# N.B.: maximum interface name in Linux is 15 characters.
let
def-wg-vpn = name: { endpoint, publicKey, address, dns, privateKeyFile, extraOptions ? {} }: {
def-wg-vpn = name: { endpoint, publicKey, address, dns, privateKeyFile }: {
networking.wg-quick.interfaces."${name}" = {
inherit address privateKeyFile dns;
peers = [
@ -22,7 +22,7 @@ let
];
# to start: `systemctl start wg-quick-${name}`
autostart = false;
} // extraOptions;
};
};
def-ovpn = name: { endpoint, publicKey, address }: def-wg-vpn "ovpnd-${name}" {
inherit endpoint publicKey address;