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 = {
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;