diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2023-07-05 12:09:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 12:09:55 +0200 |
commit | 7f0bc68c326c2c36d9a5a3b6bd19bcd2231624ff (patch) | |
tree | 672409f3329df29994a380f6e5efbf1e021a5f3b | |
parent | d86ba1d78f4a987bd2a129b6ac0a51b43ba7c431 (diff) | |
parent | 70cc0d412fc64a0db9d2b2c49f296e2ce628d585 (diff) |
Merge pull request #237544 from hrdinka/fix_gitea
Revert "nixos/gitea: requires database"
-rw-r--r-- | nixos/modules/services/misc/gitea.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/gitea.nix b/nixos/modules/services/misc/gitea.nix index 72fad73bae509..744d54cfed552 100644 --- a/nixos/modules/services/misc/gitea.nix +++ b/nixos/modules/services/misc/gitea.nix @@ -499,7 +499,7 @@ in systemd.services.gitea = { description = "gitea"; after = [ "network.target" ] ++ optional usePostgresql "postgresql.service" ++ optional useMysql "mysql.service"; - requires = optional usePostgresql "postgresql.service" ++ optional useMysql "mysql.service"; + requires = optional (cfg.database.createDatabase && usePostgresql) "postgresql.service" ++ optional (cfg.database.createDatabase && useMysql) "mysql.service"; wantedBy = [ "multi-user.target" ]; path = [ cfg.package pkgs.git pkgs.gnupg ]; |