41 lines
952 B
Nix
41 lines
952 B
Nix
{ config, ... }: {
|
|
imports = [
|
|
../shared/network.nix
|
|
../shared/networkd.nix
|
|
../shared/wireguard.nix
|
|
];
|
|
|
|
sops.secrets = {
|
|
"wireguard/layne/pk" = {
|
|
mode = "400";
|
|
owner = config.users.users.root.name;
|
|
group = config.users.users.root.group;
|
|
};
|
|
"wireguard/layne/psk" = {
|
|
mode = "400";
|
|
owner = config.users.users.root.name;
|
|
group = config.users.users.root.group;
|
|
};
|
|
"proton/layne" = {
|
|
mode = "400";
|
|
owner = config.users.users.root.name;
|
|
group = config.users.users.root.group;
|
|
};
|
|
};
|
|
|
|
nodeconfig.wireguard = {
|
|
enable = true;
|
|
listen-port = 51834;
|
|
pk-file = config.sops.secrets."wireguard/layne/pk".path;
|
|
psk-file = config.sops.secrets."wireguard/layne/psk".path;
|
|
node-ips = [
|
|
"10.10.10.14/24"
|
|
];
|
|
};
|
|
|
|
networking.wg-quick = {
|
|
interfaces = {
|
|
ProtonVPN.configFile = config.sops.secrets."proton/layne".path;
|
|
};
|
|
};
|
|
}
|