nix/modules/home-manager/cli/utils/default.nix

33 lines
519 B
Nix

{ 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";
};
};
};
}