add impermanent folders for tailscale
This commit is contained in:
parent
64f58e8b5f
commit
0fdc1b1c9c
1 changed files with 13 additions and 0 deletions
|
|
@ -15,5 +15,18 @@
|
||||||
networking.firewall.allowedUDPPorts = [ config.services.tailscale.port ];
|
networking.firewall.allowedUDPPorts = [ config.services.tailscale.port ];
|
||||||
environment.systemPackages = [ pkgs.tailscale ];
|
environment.systemPackages = [ pkgs.tailscale ];
|
||||||
})
|
})
|
||||||
|
|
||||||
|
# tailscale and impermanence
|
||||||
|
(lib.mkIf
|
||||||
|
(
|
||||||
|
config.osbmModules.services.tailscale.enable
|
||||||
|
&& config.osbmModules.hardware.disko.zfs.root.impermanenceRoot
|
||||||
|
)
|
||||||
|
{
|
||||||
|
environment.persistence."/persist".directories = [
|
||||||
|
"/var/lib/tailscale"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue