diff options
Diffstat (limited to 'user-profiles')
| -rw-r--r-- | user-profiles/utils.nix | 19 |
1 files changed, 4 insertions, 15 deletions
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 @@ | |||
| 1 | { userName, lib, pkgs, config, ... }: | 1 | { userName, lib, pkgs, config, ... }: |
| 2 | let | 2 | let |
| 3 | cfg = config.home-manager.users.${userName}; | 3 | cfg = config.home-manager.users.${userName}; |
| 4 | |||
| 5 | wrappedLess = pkgs.less.overrideAttrs (oldAttrs: { | ||
| 6 | pname = "${oldAttrs.pname or "less"}-wrapper"; | ||
| 7 | |||
| 8 | nativeBuildInputs = (oldAttrs.nativeBuildInputs or []) ++ (with pkgs; [makeWrapper]); | ||
| 9 | |||
| 10 | postInstall = '' | ||
| 11 | ${oldAttrs.postInstall or ""} | ||
| 12 | |||
| 13 | wrapProgram $out/bin/less \ | ||
| 14 | --prefix PATH : ${lib.makeBinPath (with pkgs; [binutils])} | ||
| 15 | ''; | ||
| 16 | }); | ||
| 17 | in { | 4 | in { |
| 18 | home-manager.users.${userName} = { | 5 | home-manager.users.${userName} = { |
| 19 | programs = { | 6 | programs = { |
| @@ -55,10 +42,12 @@ in { | |||
| 55 | }; | 42 | }; |
| 56 | 43 | ||
| 57 | jq.enable = true; | 44 | jq.enable = true; |
| 45 | |||
| 46 | lesspipe.enable = true; | ||
| 58 | }; | 47 | }; |
| 59 | 48 | ||
| 60 | home.sessionVariables = { | 49 | home.sessionVariables = { |
| 61 | LESSCOLORIZER = "pygmentize -O style=rrt"; | 50 | LESSCOLORIZER = "${lib.getExe' pkgs.python3Packages.pygments "pygmentize"} -O style=rrt"; |
| 62 | }; | 51 | }; |
| 63 | 52 | ||
| 64 | home.packages = with pkgs; [ | 53 | home.packages = with pkgs; [ |
| @@ -67,7 +56,7 @@ in { | |||
| 67 | psmisc mosh tree vnstat file pv bc zip nmap aspell | 56 | psmisc mosh tree vnstat file pv bc zip nmap aspell |
| 68 | aspellDicts.de aspellDicts.en borgbackup man-pages rsync socat | 57 | aspellDicts.de aspellDicts.en borgbackup man-pages rsync socat |
| 69 | inetutils yq cached-nix-shell persistent-nix-shell rage | 58 | inetutils yq cached-nix-shell persistent-nix-shell rage |
| 70 | smartmontools hdparm nix-output-monitor wrappedLess dscp | 59 | smartmontools hdparm nix-output-monitor less dscp |
| 71 | iputils | 60 | iputils |
| 72 | ]; | 61 | ]; |
| 73 | }; | 62 | }; |
