Skip to content

Commit 8c9ee72

Browse files
authored
nixos/privatebin: fix defaultText (#378964)
2 parents a53f6a4 + bbae05d commit 8c9ee72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nixos/modules/services/web-apps/privatebin.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ in
5252
group = lib.mkOption {
5353
type = lib.types.str;
5454
default = if cfg.enableNginx then "nginx" else defaultGroup;
55-
defaultText = "If `services.privatebin.enableNginx` is true then `nginx` else ${defaultGroup}";
55+
defaultText = lib.literalExpression "if config.services.privatebin.enableNginx then \"nginx\" else \"${defaultGroup}\"";
5656
description = ''
5757
Group under which privatebin runs. It is best to set this to the group
5858
of whatever webserver is being used as the frontend.
@@ -139,7 +139,6 @@ in
139139
};
140140

141141
config = lib.mkIf cfg.enable {
142-
143142
services.privatebin.settings = {
144143
main = lib.mkDefault { };
145144
model.class = lib.mkDefault "Filesystem";

0 commit comments

Comments
 (0)