exa: add package option
This commit is contained in:
parent
60c6bfe322
commit
ebd7830814
|
@ -20,11 +20,14 @@ in {
|
||||||
options.programs.exa = {
|
options.programs.exa = {
|
||||||
enable =
|
enable =
|
||||||
mkEnableOption "exa, a modern replacement for <command>ls</command>";
|
mkEnableOption "exa, a modern replacement for <command>ls</command>";
|
||||||
|
|
||||||
enableAliases = mkEnableOption "recommended exa aliases";
|
enableAliases = mkEnableOption "recommended exa aliases";
|
||||||
|
|
||||||
|
package = mkPackageOption pkgs "exa" { };
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.exa ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
programs.bash.shellAliases = mkIf cfg.enableAliases aliases;
|
programs.bash.shellAliases = mkIf cfg.enableAliases aliases;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue