2022-04-27 01:17:51 +03:00
|
|
|
{ lib, config, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.progs.exa;
|
|
|
|
bin = "${pkgs.exa}/bin/exa";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.progs.exa = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = "Add and configure exa, a modern replacement for ls";
|
|
|
|
};
|
|
|
|
};
|
2022-08-29 15:40:41 +03:00
|
|
|
|
2022-04-27 01:17:51 +03:00
|
|
|
config = mkIf cfg.enable {
|
2022-09-04 23:48:01 +03:00
|
|
|
programs.exa = {
|
|
|
|
enable = true;
|
|
|
|
enableAliases = true;
|
2022-04-27 01:17:51 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|