nixos/gitea: Respect gitea-dump enable option. (#41437)

This commit is contained in:
Thomas Kerber 2018-06-04 07:41:20 +01:00 committed by xeji
parent ca0e52edc3
commit 61f5b9d6c4

View file

@ -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" ];