From bbae05deac2fb7d255e8efcbf2f50ad7f3803831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 3 Feb 2025 00:00:30 +0100 Subject: [PATCH] nixos/privatebin: fix defaultText --- nixos/modules/services/web-apps/privatebin.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/services/web-apps/privatebin.nix b/nixos/modules/services/web-apps/privatebin.nix index ea1d9933d0b7..0d780a39a8fc 100644 --- a/nixos/modules/services/web-apps/privatebin.nix +++ b/nixos/modules/services/web-apps/privatebin.nix @@ -52,7 +52,7 @@ in group = lib.mkOption { type = lib.types.str; 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 = '' Group under which privatebin runs. It is best to set this to the group of whatever webserver is being used as the frontend. @@ -139,7 +139,6 @@ in }; config = lib.mkIf cfg.enable { - services.privatebin.settings = { main = lib.mkDefault { }; model.class = lib.mkDefault "Filesystem";