1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-05 02:39:45 +01:00

exa: add package option

This commit is contained in:
janabhumi 2022-09-14 00:26:28 +03:00 committed by Robert Helgesson
parent 60c6bfe322
commit ebd7830814
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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;