Skip to content

Commit

Permalink
nix: add defaultText to services.lnbits.package (lnbits#803)
Browse files Browse the repository at this point in the history
Without this, evaluating the module doesn't provide a default value visible on search.nixos.org
  • Loading branch information
MatthewCroughan authored Aug 3, 2022
1 parent 716a30a commit 28af0a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nix/modules/lnbits-service.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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

{
Expand All @@ -25,6 +25,7 @@ in
};
package = mkOption {
type = types.package;
defaultText = literalExpression "pkgs.lnbits";
default = pkgs.lnbits;
description = ''
The lnbits package to use.
Expand Down

0 comments on commit 28af0a2

Please sign in to comment.