nixos/gitea: Respect gitea-dump enable option. (#41437)
This commit is contained in:
parent
ca0e52edc3
commit
61f5b9d6c4
@ -356,7 +356,7 @@ in
|
||||
text = cfg.database.password;
|
||||
})));
|
||||
|
||||
systemd.services.gitea-dump = {
|
||||
systemd.services.gitea-dump = mkIf cfg.dump.enable {
|
||||
description = "gitea dump";
|
||||
after = [ "gitea.service" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
@ -376,7 +376,7 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
systemd.timers.gitea-dump = {
|
||||
systemd.timers.gitea-dump = mkIf cfg.dump.enable {
|
||||
description = "Update timer for gitea-dump";
|
||||
partOf = [ "gitea-dump.service" ];
|
||||
wantedBy = [ "timers.target" ];
|
||||
|
Loading…
Reference in New Issue
Block a user