Make zerotier work on all hosts
This commit is contained in:
parent
2809c01b20
commit
6067499083
1 changed files with 13 additions and 14 deletions
|
@ -1,17 +1,16 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config = lib.mkMerge [
|
||||
{
|
||||
services.zerotierone = {
|
||||
enable = true;
|
||||
joinNetworks = [ "632ea29085af0cb4" ];
|
||||
};
|
||||
|
||||
}
|
||||
(lib.mkIf (config.networking.hostName == "sisko") {
|
||||
environment.persistence."/persist".directories = [
|
||||
"/var/lib/zerotier-one"
|
||||
];
|
||||
})
|
||||
];
|
||||
services.zerotierone = {
|
||||
enable = true;
|
||||
joinNetworks = [ "632ea29085af0cb4" ];
|
||||
};
|
||||
environment =
|
||||
if (config.networking.hostName == "sisko") then
|
||||
{
|
||||
persistence."/persist".directories = [
|
||||
"/var/lib/zerotier-one"
|
||||
];
|
||||
}
|
||||
else
|
||||
{ };
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue