Skip to content

Commit 68eb171

Browse files
committed
fix: make clawdinator-agenix oneshot idempotent
1 parent 9463089 commit 68eb171

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nix/modules/clawdinator.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,9 +654,12 @@ in
654654
wantedBy = [ "multi-user.target" ];
655655
after = [ "clawdinator-bootstrap.service" ];
656656
wants = [ "clawdinator-bootstrap.service" ];
657+
unitConfig = {
658+
ConditionPathExists = "!/run/agenix";
659+
};
657660
serviceConfig = {
658661
Type = "oneshot";
659-
ConditionPathExists = "!/run/agenix";
662+
RemainAfterExit = true;
660663
ExecStart = "/run/current-system/bin/switch-to-configuration switch";
661664
};
662665
};

0 commit comments

Comments
 (0)