configuration.nix/hosts/wynne/wireguard.nix

28 lines
656 B
Nix
Raw Normal View History

2024-07-03 17:03:51 +05:30
{ config, ... }: {
2024-07-06 00:39:36 +05:30
imports = [ ../shared/wireguard.nix ];
2024-07-03 17:03:51 +05:30
sops.secrets = {
"wireguard/wynne/pk" = {
mode = "400";
owner = config.users.users.root.name;
group = config.users.users.root.group;
};
"wireguard/wynne/psk" = {
mode = "400";
owner = config.users.users.root.name;
group = config.users.users.root.group;
};
};
2024-07-06 00:39:36 +05:30
nodeconfig.wireguard = {
2024-07-03 17:03:51 +05:30
enable = true;
2024-07-06 00:39:36 +05:30
listen-port = 51833;
pk-file = config.sops.secrets."wireguard/wynne/pk".path;
psk-file = config.sops.secrets."wireguard/wynne/psk".path;
node-ips = [
"10.10.10.13/24"
"fd7c:585c:c4ae::13/64"
];
2024-07-03 17:03:51 +05:30
};
}