mirror of
https://github.com/RGBCube/ncc
synced 2025-07-27 10:07:44 +00:00
21 lines
501 B
Nix
21 lines
501 B
Nix
{ config, lib, pkgs, ... }: let
|
|
inherit (lib) enabled;
|
|
in {
|
|
environment.variables = {
|
|
MANPAGER = "bat --plain";
|
|
PAGER = "bat --plain";
|
|
};
|
|
environment.shellAliases = {
|
|
cat = "bat";
|
|
less = "bat --plain";
|
|
};
|
|
|
|
home-manager.sharedModules = [{
|
|
programs.bat = enabled {
|
|
config.theme = "base16";
|
|
themes.base16.src = pkgs.writeText "base16.tmTheme" config.theme.tmTheme;
|
|
|
|
config.pager = "less --quit-if-one-screen --RAW-CONTROL-CHARS";
|
|
};
|
|
}];
|
|
}
|