Initial commit

This commit is contained in:
2026-03-31 16:53:11 +02:00
commit d0eba1c834
343 changed files with 34443 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
{
pkgs,
lib,
...
}: let
configFile = "bat/config";
manPager = pkgs.writeShellScriptBin "manpager" ''
${pkgs.coreutils}/bin/col -bx | ${pkgs.bat}/bin/bat -l man -p "$@"
'';
in {
environment.sessionVariables = {
MANPAGER = "${manPager}/bin/manpager";
MANROFFOPT = "-c";
};
users.users.someone.packages = with pkgs; [
bat
manPager
];
xdg.configFile."${configFile}".text =
lib.generators.toKeyValue {
mkKeyValue = k: v: "--${lib.escapeShellArg k}=${lib.escapeShellArg v}";
listsAsDuplicateKeys = true;
} {
pager = "less -FR";
style = "plain";
theme = "base16";
};
}