diff --git a/nixos/modules/services/misc/gitea.nix b/nixos/modules/services/misc/gitea.nix index b8d2bfe0ffca1..e64606ee56253 100644 --- a/nixos/modules/services/misc/gitea.nix +++ b/nixos/modules/services/misc/gitea.nix @@ -577,7 +577,7 @@ in ''; serviceConfig = { - Type = "simple"; + Type = if (lib.versionAtLeast (lib.versions.majorMinor cfg.package.version) "1.20") then "notify" else "simple"; User = cfg.user; Group = cfg.group; WorkingDirectory = cfg.stateDir;