Loading nixos/modules/services/web-apps/mealie.nix +13 −1 Original line number Diff line number Diff line Loading @@ -39,6 +39,18 @@ in }; }; extraOptions = lib.mkOption { type = lib.types.listOf lib.types.str; default = [ ]; example = [ "--log-level" "debug" ]; description = '' Specifies extra command line arguments to pass to mealie (Gunicorn). ''; }; credentialsFile = lib.mkOption { type = with lib.types; nullOr path; default = null; Loading Loading @@ -84,7 +96,7 @@ in DynamicUser = true; User = "mealie"; ExecStartPre = "${pkg}/libexec/init_db"; ExecStart = "${lib.getExe pkg} -b ${cfg.listenAddress}:${builtins.toString cfg.port}"; ExecStart = "${lib.getExe pkg} -b ${cfg.listenAddress}:${builtins.toString cfg.port} ${lib.escapeShellArgs cfg.extraOptions}"; EnvironmentFile = lib.mkIf (cfg.credentialsFile != null) cfg.credentialsFile; StateDirectory = "mealie"; StandardOutput = "journal"; Loading Loading
nixos/modules/services/web-apps/mealie.nix +13 −1 Original line number Diff line number Diff line Loading @@ -39,6 +39,18 @@ in }; }; extraOptions = lib.mkOption { type = lib.types.listOf lib.types.str; default = [ ]; example = [ "--log-level" "debug" ]; description = '' Specifies extra command line arguments to pass to mealie (Gunicorn). ''; }; credentialsFile = lib.mkOption { type = with lib.types; nullOr path; default = null; Loading Loading @@ -84,7 +96,7 @@ in DynamicUser = true; User = "mealie"; ExecStartPre = "${pkg}/libexec/init_db"; ExecStart = "${lib.getExe pkg} -b ${cfg.listenAddress}:${builtins.toString cfg.port}"; ExecStart = "${lib.getExe pkg} -b ${cfg.listenAddress}:${builtins.toString cfg.port} ${lib.escapeShellArgs cfg.extraOptions}"; EnvironmentFile = lib.mkIf (cfg.credentialsFile != null) cfg.credentialsFile; StateDirectory = "mealie"; StandardOutput = "journal"; Loading