From 303b8e2ed8b836858b4dc6ca2210178ace9c6b6f Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 9 Nov 2023 03:00:14 +0300 Subject: 2023-11-09 --- modules/nixos/zathura.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/nixos/zathura.nix (limited to 'modules/nixos/zathura.nix') diff --git a/modules/nixos/zathura.nix b/modules/nixos/zathura.nix new file mode 100644 index 0000000..e7d1415 --- /dev/null +++ b/modules/nixos/zathura.nix @@ -0,0 +1,15 @@ +{ + config, + lib, + ... +}: +with lib; let + cfg = config.nixfiles.modules.zathura; +in { + config = mkIf cfg.enable { + nixfiles.modules.common.xdg.defaultApplications."org.pwmt.zathura" = [ + "application/pdf" + "application/epub+zip" + ]; + }; +} -- cgit v1.2.3