diff options
Diffstat (limited to 'user-profiles/utils.nix')
-rw-r--r-- | user-profiles/utils.nix | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/user-profiles/utils.nix b/user-profiles/utils.nix index 13eb6033..da79e336 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,19 +42,23 @@ in { | |||
55 | }; | 42 | }; |
56 | 43 | ||
57 | jq.enable = true; | 44 | jq.enable = true; |
45 | |||
46 | lesspipe.enable = true; | ||
47 | |||
48 | man.enable = true; | ||
58 | }; | 49 | }; |
59 | 50 | ||
60 | home.sessionVariables = { | 51 | home.sessionVariables = { |
61 | LESSCOLORIZER = "pygmentize -O style=rrt"; | 52 | LESSCOLORIZER = "${lib.getExe' pkgs.python3Packages.pygments "pygmentize"} -O style=rrt"; |
62 | }; | 53 | }; |
63 | 54 | ||
64 | home.packages = with pkgs; [ | 55 | home.packages = with pkgs; [ |
65 | autossh usbutils pciutils eza silver-searcher pwgen xkcdpass | 56 | autossh usbutils pciutils eza silver-searcher pwgen xkcdpass |
66 | unzip magic-wormhole qrencode tty-clock dnsutils openssl sshfs | 57 | unzip magic-wormhole dnsutils openssl sshfs |
67 | psmisc mosh tree vnstat file pv bc zip nmap aspell | 58 | psmisc mosh tree vnstat file pv bc zip nmap aspell |
68 | aspellDicts.de aspellDicts.en borgbackup man-pages rsync socat | 59 | aspellDicts.de aspellDicts.en borgbackup man-pages rsync socat |
69 | inetutils yq cached-nix-shell persistent-nix-shell rage | 60 | inetutils yq cached-nix-shell persistent-nix-shell rage |
70 | smartmontools hdparm nix-output-monitor wrappedLess dscp | 61 | smartmontools hdparm nix-output-monitor less dscp |
71 | iputils | 62 | iputils |
72 | ]; | 63 | ]; |
73 | }; | 64 | }; |