Correctly use mkMerge
This commit is contained in:
parent
c327895c6b
commit
bce8fbbb78
1 changed files with 16 additions and 13 deletions
|
@ -1,14 +1,17 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
lib.mkMerge [
|
{
|
||||||
{
|
config = 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"
|
(lib.mkIf (config.networking.hostName == "sisko") {
|
||||||
];
|
environment.persistence."/persist".directories = [
|
||||||
})
|
"/var/lib/zerotier-one"
|
||||||
]
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue