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
|
@ -1,12 +0,0 @@
|
|||
_:{
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
config = {
|
||||
theme = "base16";
|
||||
};
|
||||
};
|
||||
|
||||
programs.zsh.shellAliases = {
|
||||
cat = "bat";
|
||||
};
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
{ pkgs, ...}:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
eza
|
||||
];
|
||||
|
||||
programs.zsh.shellAliases = {
|
||||
ls = "eza";
|
||||
};
|
||||
home.sessionVariables = {
|
||||
EXA_COLORS = "xx=2";
|
||||
};
|
||||
}
|
|
@ -8,6 +8,7 @@
|
|||
ghq.enable = true;
|
||||
git.enable = true;
|
||||
neovim.enable = true;
|
||||
utils.enable = true;
|
||||
vifm.enable = true;
|
||||
zsh.enable = true;
|
||||
};
|
||||
|
|
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -7,6 +7,7 @@
|
|||
./cli/ghq/default.nix
|
||||
./cli/git
|
||||
./cli/neovim
|
||||
./cli/utils
|
||||
./cli/vifm
|
||||
./cli/zsh
|
||||
./desktop/sway
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue