diff --git a/nix/os/snippets/mycelium.nix b/nix/os/snippets/mycelium.nix index 236e1fe..6d211cf 100644 --- a/nix/os/snippets/mycelium.nix +++ b/nix/os/snippets/mycelium.nix @@ -4,8 +4,11 @@ nodeName, config, system, + lib, ... -}: { +}: let + cfg.autostart = false; +in { imports = [ ]; @@ -27,4 +30,6 @@ extraArgs = [ ]; }; + + systemd.services.mycelium.wantedBy = lib.mkIf (!cfg.autostart) (lib.mkForce []); }