chore: transform exa and bat into modules

This commit is contained in:
Yorick Barbanneau 2024-04-10 22:48:28 +02:00
parent 8877cdee96
commit e6fc0ff000
5 changed files with 35 additions and 25 deletions

View file

@ -0,0 +1,33 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.cli.utils;
in
{
options.modules.cli.utils = {
enable = mkEnableOption "Install cli utils";
};
config = mkIf cfg.enable {
programs.bat = {
enable = true;
config = {
theme = "base16";
};
};
home.packages = with pkgs; [
eza
];
home = {
sessionVariables = {
EXA_COLORS = "xx=2";
};
shellAliases = {
ls = "eza";
cat = "bat";
};
};
};
}