system/home/progs/exa.nix

25 lines
402 B
Nix

{ 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";
};
};
config = mkIf cfg.enable {
programs.exa = {
enable = true;
enableAliases = true;
};
};
}