summaryrefslogtreecommitdiff
path: root/user-profiles
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-05-02 16:15:52 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2025-05-02 16:15:52 +0200
commitb37371a61aa9f6ec3f4e4e4b118a9d06f3689b5e (patch)
tree09c76f10f6767c8867bc2bd092b5f4844e197a6a /user-profiles
parentc22c3cf38fc94429480082c4225702b28d48c134 (diff)
downloadnixos-b37371a61aa9f6ec3f4e4e4b118a9d06f3689b5e.tar
nixos-b37371a61aa9f6ec3f4e4e4b118a9d06f3689b5e.tar.gz
nixos-b37371a61aa9f6ec3f4e4e4b118a9d06f3689b5e.tar.bz2
nixos-b37371a61aa9f6ec3f4e4e4b118a9d06f3689b5e.tar.xz
nixos-b37371a61aa9f6ec3f4e4e4b118a9d06f3689b5e.zip
...
Diffstat (limited to 'user-profiles')
-rw-r--r--user-profiles/utils.nix19
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, ... }:
2let 2let
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 });
17in { 4in {
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 };