mirror of
https://github.com/nix-community/home-manager
synced 2024-12-23 02:09:47 +01:00
exa: add package option
This commit is contained in:
parent
60c6bfe322
commit
ebd7830814
1 changed files with 4 additions and 1 deletions
|
@ -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