- Deleted shell aliases for `cat` and `less` using `bat` to simplify configuration. - Maintains alias for `man` with `batman` for consistency.
32 lines
566 B
Nix
32 lines
566 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
inherit (lib.metacfg) enabled;
|
|
|
|
cfg = config.metacfg.cli-apps.home-manager;
|
|
in
|
|
{
|
|
options.metacfg.cli-apps.home-manager = {
|
|
enable = mkEnableOption "home-manager";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.home-manager = enabled;
|
|
home.sessionVariables = {
|
|
EDITOR = "${pkgs.vim}/bin/vim";
|
|
BATDIFF_USE_DELTA = "true";
|
|
};
|
|
|
|
home.shellAliases = {
|
|
man = "${pkgs.bat-extras.batman}/bin/batman";
|
|
};
|
|
|
|
home.packages = with pkgs; [ vim ];
|
|
};
|
|
}
|