chore: transform exa and bat into modules
This commit is contained in:
parent
8877cdee96
commit
e6fc0ff000
5 changed files with 35 additions and 25 deletions
33
modules/home-manager/cli/utils/default.nix
Normal file
33
modules/home-manager/cli/utils/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue