nixos/privatebin: fix defaultText (#378964)

This commit is contained in:
Franz Pletz 2025-02-03 01:58:37 +01:00 committed by GitHub
commit 8c9ee722fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,7 +52,7 @@ in
group = lib.mkOption { group = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = if cfg.enableNginx then "nginx" else defaultGroup; default = if cfg.enableNginx then "nginx" else defaultGroup;
defaultText = "If `services.privatebin.enableNginx` is true then `nginx` else ${defaultGroup}"; defaultText = lib.literalExpression "if config.services.privatebin.enableNginx then \"nginx\" else \"${defaultGroup}\"";
description = '' description = ''
Group under which privatebin runs. It is best to set this to the group Group under which privatebin runs. It is best to set this to the group
of whatever webserver is being used as the frontend. of whatever webserver is being used as the frontend.
@ -139,7 +139,6 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.privatebin.settings = { services.privatebin.settings = {
main = lib.mkDefault { }; main = lib.mkDefault { };
model.class = lib.mkDefault "Filesystem"; model.class = lib.mkDefault "Filesystem";