From 28af0a21001bfa5f444bec68b060a0cec352833f Mon Sep 17 00:00:00 2001 From: MatthewCroughan Date: Wed, 3 Aug 2022 08:52:04 +0100 Subject: [PATCH] nix: add defaultText to services.lnbits.package (#803) Without this, evaluating the module doesn't provide a default value visible on search.nixos.org --- nix/modules/lnbits-service.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/modules/lnbits-service.nix b/nix/modules/lnbits-service.nix index 5d8e0640..e7029e67 100644 --- a/nix/modules/lnbits-service.nix +++ b/nix/modules/lnbits-service.nix @@ -3,7 +3,7 @@ let defaultUser = "lnbits"; cfg = config.services.lnbits; - inherit (lib) mkOption mkIf types optionalAttrs; + inherit (lib) mkOption mkIf types optionalAttrs literalExpression; in { @@ -25,6 +25,7 @@ in }; package = mkOption { type = types.package; + defaultText = literalExpression "pkgs.lnbits"; default = pkgs.lnbits; description = '' The lnbits package to use.