Skip to content

Commit

Permalink
broot: add package option
Browse files Browse the repository at this point in the history
Allow for overriding the package used.
  • Loading branch information
workflow committed Jan 6, 2021
1 parent b9597e5 commit a361541
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/programs/broot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ in {
'';
};

package = mkOption {
type = types.package;
default = pkgs.broot;
defaultText = literalExample "pkgs.broot";
description = "Package providing broot";
};

skin = mkOption {
type = types.attrsOf types.str;
default = { };
Expand Down Expand Up @@ -185,7 +192,7 @@ in {
};

config = mkIf cfg.enable {
home.packages = [ pkgs.broot ];
home.packages = [ cfg.package ];

xdg.configFile."broot/conf.toml".source = configFile brootConf;

Expand Down

0 comments on commit a361541

Please sign in to comment.