nvimpager: allow access to vimrc

This commit is contained in:
2025-08-19 20:38:11 +00:00
parent 2b69c07d12
commit f305027678

View File

@@ -1,4 +1,7 @@
{ config, pkgs, ... }: { config, lib, pkgs, ... }:
let
cfg = config.sane.programs.nvimpager;
in
{ {
sane.programs.nvimpager = { sane.programs.nvimpager = {
packageUnwrapped = (pkgs.nvimpager.override { packageUnwrapped = (pkgs.nvimpager.override {
@@ -10,6 +13,9 @@
suggestedPrograms = [ "neovim" ]; suggestedPrograms = [ "neovim" ];
sandbox.extraHomePaths = [
".config/nvim"
];
sandbox.whitelistWayland = true; # for system clipboard integration sandbox.whitelistWayland = true; # for system clipboard integration
env.MANPAGER = "nvimpager"; env.MANPAGER = "nvimpager";
@@ -21,4 +27,8 @@
env.MANWIDTH = "999"; env.MANWIDTH = "999";
env.MANROFFOPT = "-c"; env.MANROFFOPT = "-c";
}; };
sane.programs.man-db.sandbox.extraHomePaths = lib.mkIf cfg.enabled [
".config/nvim"
];
} }