summaryrefslogtreecommitdiff
path: root/hel.nix
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-21 16:51:20 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-21 16:51:20 +0200
commit6b374caa40dd3c5f23022f0ff092cd828e0418a8 (patch)
treee3e3bb5d38a58691406f895600ad800ae7afe67e /hel.nix
parente8456f4cda4cf63c2e3564e540d2894492da1516 (diff)
downloadnixos-6b374caa40dd3c5f23022f0ff092cd828e0418a8.tar
nixos-6b374caa40dd3c5f23022f0ff092cd828e0418a8.tar.gz
nixos-6b374caa40dd3c5f23022f0ff092cd828e0418a8.tar.bz2
nixos-6b374caa40dd3c5f23022f0ff092cd828e0418a8.tar.xz
nixos-6b374caa40dd3c5f23022f0ff092cd828e0418a8.zip
more lightweight notify-user
Diffstat (limited to 'hel.nix')
-rw-r--r--hel.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/hel.nix b/hel.nix
index f2147c3f..2a1b9736 100644
--- a/hel.nix
+++ b/hel.nix
@@ -254,7 +254,15 @@
254 program = "notify-gkleen"; 254 program = "notify-gkleen";
255 setgid = true; 255 setgid = true;
256 setuid = true; 256 setuid = true;
257 source = pkgs.callPackage ./custom/notify-user.nix { inherit (pkgs.haskellPackages) ghcWithPackages; user = "gkleen"; }; 257 source = pkgs.lib.writeTextFile {
258 name = "notify-gkleen";
259 text = ''
260 #!${pkgs.zsh}/bin/zsh
261
262 DBUS_ADDRESS=`grep "DBUS_SESSION_BUS_ADDRESS=" /home/gkleen/.dbus/session-bus/${"*"}-0 | cut -d "=" -f 2-`
263 exec env DBUS_SESSION_BUS_ADDRESS='${DBUS_ADDRESS} ${pkgs.libnotify}/notify-send '${(qq)@}
264 '';
265 };
258 } 266 }
259 ]; 267 ];
260 }; 268 };