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