summary refs log tree commit diff
path: root/nixos/modules/services/misc/gitea.nix
diff options
context:
space:
mode:
authorThomas Kerber <tk@drwx.org>2018-06-04 07:41:20 +0100
committerxeji <36407913+xeji@users.noreply.github.com>2018-06-04 08:41:20 +0200
commit61f5b9d6c4d45c5c5ffc469ca5335ec7ffe947ab (patch)
tree07130a9cc7a476f6985d39ab5105131fd410cb8c /nixos/modules/services/misc/gitea.nix
parentca0e52edc3f15ce1fca5e7f8e4accc718ea93e1f (diff)
downloadnixpkgs-61f5b9d6c4d45c5c5ffc469ca5335ec7ffe947ab.tar
nixpkgs-61f5b9d6c4d45c5c5ffc469ca5335ec7ffe947ab.tar.gz
nixpkgs-61f5b9d6c4d45c5c5ffc469ca5335ec7ffe947ab.tar.bz2
nixpkgs-61f5b9d6c4d45c5c5ffc469ca5335ec7ffe947ab.tar.lz
nixpkgs-61f5b9d6c4d45c5c5ffc469ca5335ec7ffe947ab.tar.xz
nixpkgs-61f5b9d6c4d45c5c5ffc469ca5335ec7ffe947ab.tar.zst
nixpkgs-61f5b9d6c4d45c5c5ffc469ca5335ec7ffe947ab.zip
nixos/gitea: Respect gitea-dump enable option. (#41437)
Diffstat (limited to 'nixos/modules/services/misc/gitea.nix')
-rw-r--r--nixos/modules/services/misc/gitea.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/gitea.nix b/nixos/modules/services/misc/gitea.nix
index 45dfdc71eb3..46efc1df12e 100644
--- a/nixos/modules/services/misc/gitea.nix
+++ b/nixos/modules/services/misc/gitea.nix
@@ -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" ];