Compare commits
No commits in common. "9d4b2b4b7f80829f4a0f9ed0e925bf3844dc9fd4" and "cba0555c387d8af2adc71ac21bf818af6ba8a312" have entirely different histories.
9d4b2b4b7f
...
cba0555c38
2 changed files with 11 additions and 14 deletions
|
@ -24,4 +24,9 @@
|
||||||
privateKeyFile = config.age.secrets."${config.networking.hostName}-wireguard-private-key".path;
|
privateKeyFile = config.age.secrets."${config.networking.hostName}-wireguard-private-key".path;
|
||||||
listenPort = 51820;
|
listenPort = 51820;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.hosts = lib.mapAttrs' (hostname: vpnConfig: {
|
||||||
|
name = vpnConfig.ip;
|
||||||
|
value = [ "${hostname}.wg.aciceri.dev" ];
|
||||||
|
}) vpn;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
{ config, lib, ... }:
|
{
|
||||||
lib.mkMerge [
|
services.zerotierone = {
|
||||||
{
|
enable = true;
|
||||||
services.zerotierone = {
|
joinNetworks = [ "632ea29085af0cb4" ];
|
||||||
enable = true;
|
};
|
||||||
joinNetworks = [ "632ea29085af0cb4" ];
|
}
|
||||||
};
|
|
||||||
}
|
|
||||||
(lib.optionalAttrs (config.networking.hostName == "sisko") {
|
|
||||||
environment.persistence."/persist".directories = [
|
|
||||||
"/var/lib/zerotier-one"
|
|
||||||
];
|
|
||||||
})
|
|
||||||
]
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue