configuration.nix/hosts/wynne/network.nix

31 lines
685 B
Nix
Raw Normal View History

2024-07-07 00:23:51 +05:30
{ config, ... }: {
imports = [
../shared/network.nix
../shared/networkd.nix
../shared/wireguard.nix
];
2024-07-03 17:03:51 +05:30
2024-07-07 00:23: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-03 17:03:51 +05:30
};
};
2024-07-07 00:23:51 +05:30
nodeconfig.wireguard = {
2024-07-03 17:03:51 +05:30
enable = true;
2024-07-07 00:23:51 +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"
];
2024-07-03 17:03:51 +05:30
};
}