about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorThinkChaos <ThinkChaos@users.noreply.github.com>2022-12-13 12:08:47 -0500
committerThinkChaos <ThinkChaos@users.noreply.github.com>2023-04-19 12:18:46 -0400
commitf8d5d6cd02fb4ba53d1aaef097d89ab13028b400 (patch)
treefe7964b9e808e6c7b62d2bee1fbd3543a0a8bc69 /nixos
parent0a4206a51b386e5cda731e8ac78d76ad924c7125 (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.nix2
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";
       }
     ];