From 384e98f9276bc750fece64de01f4402d5c517f69 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Tue, 28 May 2024 23:47:11 -0400 Subject: [PATCH] fix module issues with k3s-net Signed-off-by: ahuston-0 --- modules/kub_net.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/kub_net.nix b/modules/kub_net.nix index 93e4a79..d28f172 100644 --- a/modules/kub_net.nix +++ b/modules/kub_net.nix @@ -1,4 +1,7 @@ -{ lib, ... }: +{ lib, config, ... }: +let + cfg = config.services.rad-dev.k3s-net; +in { options = { services.rad-dev.k3s-net = { @@ -11,7 +14,7 @@ }; }; - config = lib.mkIf { + config = lib.mkIf cfg.enable { system.activationScripts.setZerotierName = lib.stringAfter [ "var" ] '' echo "ebe7fbd44565ba9d=ztkubnet" > /var/lib/zerotier-one/devicemap