mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-25 06:19:10 +00:00
hosts/ni/networking/wireguard: add NetworkManager profile for wireguard0
Not yet complete but it's just here existing for now.
This commit is contained in:
parent
25149e2f38
commit
a9cc97ae23
@ -39,6 +39,23 @@ in
|
||||
}
|
||||
|
||||
(lib.mkIf (networkSetup == "networkmanager") {
|
||||
networking.networkmanager.ensureProfiles.profiles = {
|
||||
personal-vpn = {
|
||||
connection = {
|
||||
id = "Plover VPN";
|
||||
type = "wireguard";
|
||||
interface-name = "wireguard0";
|
||||
|
||||
autoconnect = false;
|
||||
dns-over-tls = "opportunistic";
|
||||
};
|
||||
wireguard = {
|
||||
peer-routes = true;
|
||||
listen-port = wireguardPort;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.wg-quick.interfaces.wireguard0 = {
|
||||
privateKeyFile = config.sops.secrets."wireguard/private-key".path;
|
||||
listenPort = wireguardPort;
|
||||
|
Loading…
Reference in New Issue
Block a user