diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-05-19 22:16:44 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@sap.com> | 2022-08-04 11:42:39 +0200 |
commit | 236b053413023b2f0cc82e49be7d9ea551e1487e (patch) | |
tree | 6ff44eee6a2715e64d73b18829cf17c12cf9cdc0 | |
parent | 5f9b871b72b24f066b1a1e189efd0669f2888c49 (diff) |
nixos/gitea: fix statix warnings
-rw-r--r-- | nixos/modules/services/misc/gitea.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/services/misc/gitea.nix b/nixos/modules/services/misc/gitea.nix index 82345ad78631a..8ec7fe28af6db 100644 --- a/nixos/modules/services/misc/gitea.nix +++ b/nixos/modules/services/misc/gitea.nix @@ -85,7 +85,7 @@ in port = mkOption { type = types.port; - default = (if !usePostgresql then 3306 else pg.port); + default = if !usePostgresql then 3306 else pg.port; defaultText = literalExpression '' if config.${opt.database.type} != "postgresql" then 3306 @@ -502,7 +502,7 @@ in replaceSecretBin = "${pkgs.replace-secret}/bin/replace-secret"; in '' # copy custom configuration and generate a random secret key if needed - ${optionalString (cfg.useWizard == false) '' + ${optionalString (!cfg.useWizard) '' function gitea_setup { cp -f ${configFile} ${runConfig} @@ -622,10 +622,10 @@ in # Create database passwordFile default when password is configured. services.gitea.database.passwordFile = - (mkDefault (toString (pkgs.writeTextFile { + mkDefault (toString (pkgs.writeTextFile { name = "gitea-database-password"; text = cfg.database.password; - }))); + })); systemd.services.gitea-dump = mkIf cfg.dump.enable { description = "gitea dump"; |