From 2e584e618ca3abeaaedede1462c5d53557251c92 Mon Sep 17 00:00:00 2001 From: djairoh Date: Sun, 4 Oct 2026 10:56:25 +0200 Subject: [PATCH] hm: zathura --- modules/apps/default.nix | 1 + modules/apps/zathura.nix | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 modules/apps/zathura.nix diff --git a/modules/apps/default.nix b/modules/apps/default.nix index e16d613..b7d8fce 100644 --- a/modules/apps/default.nix +++ b/modules/apps/default.nix @@ -7,6 +7,7 @@ ./mpv.nix ./starship.nix ./tealdeer.nix + ./zathura.nix ]; services.flatpak = { enable = true; diff --git a/modules/apps/zathura.nix b/modules/apps/zathura.nix new file mode 100644 index 0000000..00814d4 --- /dev/null +++ b/modules/apps/zathura.nix @@ -0,0 +1,23 @@ +{ ... }: + +{ + # override nixpkgs so zathura works (the base executable segfaults, the sandbox does not) + nixpkgs.overlay = [ + (final: prev: { + zathura = prev.zathura.overrideAttrs ( + finalAttls: prevAttrs: { + buildCommand = prevAttrs.buildCommand + '' + mv $out/bin/zathura $out/bin/zathura-no-sandbox + mv $out/bin/zathura-sandbox $out/bin/zathura + ''; + } + ); + } + ) + ]; + + home-manager.users.djai.programs.zathura = { + enable = true; + mappings = [ ];# TODO extra zathura mappings + } +}