2025-01-27 23:30:24 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (config.local.systemVars) username;
|
|
|
|
toZathura = attrs:
|
|
|
|
builtins.concatStringsSep "\n"
|
|
|
|
(lib.mapAttrsToList (option: value: "set ${option} \"${toString value}\"") attrs);
|
|
|
|
in {
|
2025-02-06 18:40:30 +01:00
|
|
|
config = lib.mkIf (config.local.systemVars.desktop != "none") {
|
2025-01-27 23:30:24 +01:00
|
|
|
hjem.users.${username} = {
|
|
|
|
packages = [pkgs.zathura];
|
|
|
|
files = {
|
|
|
|
".config/zathura/zathurarc".text = toZathura {
|
|
|
|
font = "sans-serif 12";
|
|
|
|
selection-notification = true;
|
|
|
|
|
|
|
|
selection-clipboard = "clipboard";
|
|
|
|
adjust-open = "best-fit";
|
|
|
|
pages-per-row = "1";
|
|
|
|
scroll-page-aware = "true";
|
|
|
|
scroll-full-overlap = "0.01";
|
|
|
|
scroll-step = "100";
|
|
|
|
zoom-min = "10";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|