configuration.nix/hosts/skipper/network/wireguard.nix

28 lines
665 B
Nix
Raw Normal View History

2024-06-20 19:41:06 +05:30
{ config, ... }: {
2024-07-06 00:54:18 +05:30
imports = [ ../../shared/wireguard.nix ];
2024-07-02 23:20:11 +05:30
sops.secrets = {
"wireguard/skipper/pk" = {
mode = "400";
owner = config.users.users.root.name;
group = config.users.users.root.group;
};
"wireguard/skipper/psk" = {
mode = "400";
owner = config.users.users.root.name;
group = config.users.users.root.group;
};
2024-06-30 18:45:27 +05:30
};
2024-07-06 00:54:18 +05:30
nodeconfig.wireguard = {
2024-03-31 22:28:56 +05:30
enable = true;
2024-07-06 00:54:18 +05:30
listen-port = 51822;
pk-file = config.sops.secrets."wireguard/skipper/pk".path;
psk-file = config.sops.secrets."wireguard/skipper/psk".path;
node-ips = [
"10.10.10.2/24"
"fd7c:585c:c4ae::2/64"
];
2024-03-31 22:28:56 +05:30
};
}