nix-config/modules/home/zathura/default.nix
Bruno BELANYI d7f3695132
All checks were successful
ci/woodpecker/push/check Pipeline was successful
WIP: add XDG MIME associations
2025-01-31 11:43:21 +00:00

28 lines
680 B
Nix

{ config, lib, ... }:
let
cfg = config.my.home.zathura;
in
{
options.my.home.zathura = with lib; {
enable = mkEnableOption "zathura configuration";
};
config.programs.zathura = lib.mkIf cfg.enable {
enable = true;
options = {
# Show '~' instead of full path to '$HOME' in window title
"window-title-home-tilde" = true;
# Show '~' instead of full path to '$HOME' in status bar
"statusbar-home-tilde" = true;
};
};
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
applications.media.document = {
comic = [ "zathura.desktop" ];
ebook = [ "zathura.desktop" ];
pdf = [ "zathura.desktop" ];
};
};
}