diff options
author | ThinkChaos <ThinkChaos@users.noreply.github.com> | 2022-12-13 12:08:47 -0500 |
---|---|---|
committer | ThinkChaos <ThinkChaos@users.noreply.github.com> | 2023-04-19 12:18:46 -0400 |
commit | f8d5d6cd02fb4ba53d1aaef097d89ab13028b400 (patch) | |
tree | fe7964b9e808e6c7b62d2bee1fbd3543a0a8bc69 /nixos | |
parent | 0a4206a51b386e5cda731e8ac78d76ad924c7125 (diff) |
nixos/gitea: disable `createDatabase` assert when using sqlite
Assert doesn't make sense in that case since `database.user` isn't used.
Diffstat (limited to 'nixos')
-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 e019e431a1890..c2fc680d367fc 100644 --- a/nixos/modules/services/misc/gitea.nix +++ b/nixos/modules/services/misc/gitea.nix @@ -359,7 +359,7 @@ in config = mkIf cfg.enable { assertions = [ - { assertion = cfg.database.createDatabase -> cfg.database.user == cfg.user; + { assertion = cfg.database.createDatabase -> useSqlite || cfg.database.user == cfg.user; message = "services.gitea.database.user must match services.gitea.user if the database is to be automatically provisioned"; } ]; |