From b37371a61aa9f6ec3f4e4e4b118a9d06f3689b5e Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 2 May 2025 16:15:52 +0200 Subject: ... --- user-profiles/utils.nix | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'user-profiles/utils.nix') diff --git a/user-profiles/utils.nix b/user-profiles/utils.nix index 13eb6033..4b7c4d0f 100644 --- a/user-profiles/utils.nix +++ b/user-profiles/utils.nix @@ -1,19 +1,6 @@ { userName, lib, pkgs, config, ... }: let cfg = config.home-manager.users.${userName}; - - wrappedLess = pkgs.less.overrideAttrs (oldAttrs: { - pname = "${oldAttrs.pname or "less"}-wrapper"; - - nativeBuildInputs = (oldAttrs.nativeBuildInputs or []) ++ (with pkgs; [makeWrapper]); - - postInstall = '' - ${oldAttrs.postInstall or ""} - - wrapProgram $out/bin/less \ - --prefix PATH : ${lib.makeBinPath (with pkgs; [binutils])} - ''; - }); in { home-manager.users.${userName} = { programs = { @@ -55,10 +42,12 @@ in { }; jq.enable = true; + + lesspipe.enable = true; }; home.sessionVariables = { - LESSCOLORIZER = "pygmentize -O style=rrt"; + LESSCOLORIZER = "${lib.getExe' pkgs.python3Packages.pygments "pygmentize"} -O style=rrt"; }; home.packages = with pkgs; [ @@ -67,7 +56,7 @@ in { psmisc mosh tree vnstat file pv bc zip nmap aspell aspellDicts.de aspellDicts.en borgbackup man-pages rsync socat inetutils yq cached-nix-shell persistent-nix-shell rage - smartmontools hdparm nix-output-monitor wrappedLess dscp + smartmontools hdparm nix-output-monitor less dscp iputils ]; }; -- cgit v1.2.3