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

View File

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