fix(pager): Allow color display
By default, NixOS sets $PAGER to "less"... which is *fine* but by
default less can't use color
Instead, less only allows color when you use the -R flag
I didn't set this as a home variable because NixOS sets it as a system
variable
This is particularly noticeable when using recent versions of jujutsu,
as newer versions use your $PAGER variable still send color codes by
default
Change-Id: Id755096e4275aca2af65d2b0c272f54b534c6a5c
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/903
Reviewed-by: Skyler Grey <minion@clicks.codes>
Tested-by: Skyler Grey <minion@clicks.codes>
diff --git a/modules/nixos/pager/default.nix b/modules/nixos/pager/default.nix
new file mode 100644
index 0000000..c9834fc
--- /dev/null
+++ b/modules/nixos/pager/default.nix
@@ -0,0 +1,3 @@
+{ pkgs, ... }: {
+ environment.variables.PAGER = "${pkgs.less}/bin/less -R";
+}