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

@ -1,12 +0,0 @@
_:{
programs.bat = {
enable = true;
config = {
theme = "base16";
};
};
programs.zsh.shellAliases = {
cat = "bat";
};
}

View file

@ -1,13 +0,0 @@
{ pkgs, ...}:
{
home.packages = with pkgs; [
eza
];
programs.zsh.shellAliases = {
ls = "eza";
};
home.sessionVariables = {
EXA_COLORS = "xx=2";
};
}

View file

@ -8,6 +8,7 @@
ghq.enable = true;
git.enable = true;
neovim.enable = true;
utils.enable = true;
vifm.enable = true;
zsh.enable = true;
};

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

View file

@ -7,6 +7,7 @@
./cli/ghq/default.nix
./cli/git
./cli/neovim
./cli/utils
./cli/vifm
./cli/zsh
./desktop/sway