I don't know if i like this

This commit is contained in:
Gerg-L 2025-01-17 19:18:32 -05:00
parent c6a9144ffe
commit 1b62d16ddc
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
63 changed files with 369 additions and 294 deletions

23
nixosModules/page.nix Normal file
View file

@ -0,0 +1,23 @@
{ pkgs, config }:
{
systemd.tmpfiles.rules = [ "d /tmp/neovim-page 0777 root root - -" ];
environment = {
systemPackages = [ pkgs.page ];
variables = {
PAGER = "page -WC -q 90000 -z 90000";
SYSTEMD_PAGERSECURE = "true";
MANPAGER = "page -t man";
};
shellAliases.page = config.environment.variables.PAGER;
};
programs.zsh.interactiveShellInit = ''
man () {
PROGRAM="''${@[-1]}"
SECTION="''${@[-2]}"
page -W "man://$PROGRAM''${SECTION:+($SECTION)}"
}
'';
}