Skip to content

Commit

Permalink
nixos/renovate: set service type to simple (#334557)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Nov 3, 2024
2 parents 6d6eb5b + dba4f38 commit f5c76ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions nixos/modules/services/misc/renovate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,10 @@ in
] ++ cfg.runtimePackages;

serviceConfig = {
Type = "oneshot";
User = "renovate";
Group = "renovate";
DynamicUser = true;
LoadCredential = lib.mapAttrsToList (name: value: "SECRET-${name}:${value}") cfg.credentials;
RemainAfterExit = false;
Restart = "on-failure";
CacheDirectory = "renovate";
StateDirectory = "renovate";
Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/renovate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ import ./make-test-python.nix (
machine.succeed("git -C /tmp/kitty push origin")
machine.succeed(f"echo '{accessToken}' > /etc/renovate-token")
machine.systemctl("start renovate.service")
machine.systemctl("start --wait renovate.service")
machine.succeed("tea pulls list --repo meow/kitty | grep 'Configure Renovate'")
machine.succeed("tea pulls merge --repo meow/kitty 1")
machine.systemctl("start renovate.service")
machine.systemctl("start --wait renovate.service")
'';
}
)

0 comments on commit f5c76ad

Please sign in to comment.