Compare commits
2 commits
cba0555c38
...
9d4b2b4b7f
Author | SHA1 | Date | |
---|---|---|---|
9d4b2b4b7f | |||
83e191134a |
2 changed files with 14 additions and 11 deletions
|
@ -24,9 +24,4 @@
|
||||||
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,6 +1,14 @@
|
||||||
{
|
{ config, lib, ... }:
|
||||||
services.zerotierone = {
|
lib.mkMerge [
|
||||||
enable = true;
|
{
|
||||||
joinNetworks = [ "632ea29085af0cb4" ];
|
services.zerotierone = {
|
||||||
};
|
enable = true;
|
||||||
}
|
joinNetworks = [ "632ea29085af0cb4" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
(lib.optionalAttrs (config.networking.hostName == "sisko") {
|
||||||
|
environment.persistence."/persist".directories = [
|
||||||
|
"/var/lib/zerotier-one"
|
||||||
|
];
|
||||||
|
})
|
||||||
|
]
|
||||||
|
|
Loading…
Add table
Reference in a new issue