mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 19:00:14 +00:00
initial refactoring
This commit is contained in:
@ -0,0 +1,24 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.nmasur.presets.programs.bat;
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
options.nmasur.presets.programs.bat.enable = lib.mkEnableOption "Bat text pager";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.bat = {
|
||||
enable = true; # cat replacement
|
||||
config = {
|
||||
theme = config.theme.colors.batTheme;
|
||||
pager = "less -R"; # Don't auto-exit if one screen
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user