mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-31 04:04:32 +00:00
broot: add package option
Allow for overriding the package used.
This commit is contained in:
parent
b9597e5774
commit
a361541c10
1 changed files with 8 additions and 1 deletions
|
@ -127,6 +127,13 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.broot;
|
||||||
|
defaultText = literalExample "pkgs.broot";
|
||||||
|
description = "Package providing broot";
|
||||||
|
};
|
||||||
|
|
||||||
skin = mkOption {
|
skin = mkOption {
|
||||||
type = types.attrsOf types.str;
|
type = types.attrsOf types.str;
|
||||||
default = { };
|
default = { };
|
||||||
|
@ -185,7 +192,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.broot ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
xdg.configFile."broot/conf.toml".source = configFile brootConf;
|
xdg.configFile."broot/conf.toml".source = configFile brootConf;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue