mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00: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 = {
|
||||
enable =
|
||||
mkEnableOption "exa, a modern replacement for <command>ls</command>";
|
||||
|
||||
enableAliases = mkEnableOption "recommended exa aliases";
|
||||
|
||||
package = mkPackageOption pkgs "exa" { };
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [ pkgs.exa ];
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
programs.bash.shellAliases = mkIf cfg.enableAliases aliases;
|
||||
|
||||
|
|
Loading…
Reference in a new issue