mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/gitea: requires database
This commit is contained in:
parent
17e9d22b2b
commit
ba3d0f7a95
1 changed files with 2 additions and 1 deletions
|
@ -498,7 +498,8 @@ in
|
||||||
|
|
||||||
systemd.services.gitea = {
|
systemd.services.gitea = {
|
||||||
description = "gitea";
|
description = "gitea";
|
||||||
after = [ "network.target" ] ++ lib.optional usePostgresql "postgresql.service" ++ lib.optional useMysql "mysql.service";
|
after = [ "network.target" ] ++ optional usePostgresql "postgresql.service" ++ optional useMysql "mysql.service";
|
||||||
|
requires = optional usePostgresql "postgresql.service" ++ optional useMysql "mysql.service";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
path = [ cfg.package pkgs.git pkgs.gnupg ];
|
path = [ cfg.package pkgs.git pkgs.gnupg ];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue