configuration.nix/hosts/skipper/wireguard.nix

16 lines
285 B
Nix
Raw Normal View History

2023-10-08 13:21:45 +05:30
_: {
networking.wireguard = {
enable = true;
interfaces = {
wg0 = {
ips = [
"10.8.1.2/24"
"fdd9:69ae:9703::2/64"
];
privateKeyFile = "/etc/wireguard/private.key";
generatePrivateKeyFile = true;
};
};
};
}