31 lines
720 B
Nix
31 lines
720 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (config.local.systemVars) username;
|
|
inherit (config.local.homeVars) userEnvFile;
|
|
toConf = attrs:
|
|
builtins.concatStringsSep "\n"
|
|
(lib.mapAttrsToList (option: value: "--${option}=\"${value}\"") attrs);
|
|
in {
|
|
config = lib.mkIf config.local.profiles.desktop.enable {
|
|
hjem.users.${username} = {
|
|
packages = [
|
|
pkgs.bat
|
|
pkgs.bat-extras.batman
|
|
];
|
|
files = {
|
|
".config/bat/config".text = toConf {
|
|
theme = "base16";
|
|
};
|
|
|
|
".config/environment.d/${userEnvFile}.conf".text = ''
|
|
MANPAGER = "sh -c 'col -bx | bat --language man' "
|
|
MANROFFOPT = "-c"
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|