Skip to content

Commit

Permalink
exa: add package option
Browse files Browse the repository at this point in the history
  • Loading branch information
pleshevskiy authored and rycee committed Sep 15, 2022
1 parent 60c6bfe commit ebd7830
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/programs/exa.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ebd7830

Please sign in to comment.