lsd: add package option
This commit is contained in:
parent
77f849c114
commit
be7cf1709b
1 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,8 @@ in
|
|||
options.programs.lsd = {
|
||||
enable = lib.mkEnableOption "lsd";
|
||||
|
||||
package = lib.mkPackageOption pkgs "lsd" { nullable = true; };
|
||||
|
||||
enableBashIntegration = lib.hm.shell.mkBashIntegrationOption { inherit config; };
|
||||
|
||||
enableFishIntegration = lib.hm.shell.mkFishIntegrationOption { inherit config; };
|
||||
|
|
@ -97,7 +99,7 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ pkgs.lsd ];
|
||||
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
||||
|
||||
programs =
|
||||
let
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue