From 64d1184518c62072de5e7f109602101a690e21aa Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Sun, 13 Oct 2024 20:19:35 +0200 Subject: [PATCH] feat(myceluim): disable autostart while leaving service available --- nix/os/snippets/mycelium.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 []); }