Persist zerotierone state
This commit is contained in:
parent
cba0555c38
commit
83e191134a
1 changed files with 14 additions and 6 deletions
|
@ -1,6 +1,14 @@
|
|||
{ config, lib, ... }:
|
||||
lib.mkMerge [
|
||||
{
|
||||
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