fix module issues with k3s-net

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-05-28 23:47:11 -04:00 committed by Alice Huston
parent 961d262f8f
commit 384e98f927

View File

@ -1,4 +1,7 @@
{ lib, ... }: { lib, config, ... }:
let
cfg = config.services.rad-dev.k3s-net;
in
{ {
options = { options = {
services.rad-dev.k3s-net = { services.rad-dev.k3s-net = {
@ -11,7 +14,7 @@
}; };
}; };
config = lib.mkIf { config = lib.mkIf cfg.enable {
system.activationScripts.setZerotierName = lib.stringAfter [ "var" ] '' system.activationScripts.setZerotierName = lib.stringAfter [ "var" ] ''
echo "ebe7fbd44565ba9d=ztkubnet" > /var/lib/zerotier-one/devicemap echo "ebe7fbd44565ba9d=ztkubnet" > /var/lib/zerotier-one/devicemap