summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-21 21:15:27 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-21 21:15:27 +0200
commit7024b348e2853c975ea9757ed36866dcacd8f24a (patch)
tree666114aa0a9aa6e349e77fe78f4b771e30a74dfe /custom
parent9f173f3e4449b5ddd94fbfbbfbf76678289c849c (diff)
downloadnixos-7024b348e2853c975ea9757ed36866dcacd8f24a.tar
nixos-7024b348e2853c975ea9757ed36866dcacd8f24a.tar.gz
nixos-7024b348e2853c975ea9757ed36866dcacd8f24a.tar.bz2
nixos-7024b348e2853c975ea9757ed36866dcacd8f24a.tar.xz
nixos-7024b348e2853c975ea9757ed36866dcacd8f24a.zip
syntax
Diffstat (limited to 'custom')
-rw-r--r--custom/notify-user.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/notify-user.nix b/custom/notify-user.nix
index f95bc43d..30a844bd 100644
--- a/custom/notify-user.nix
+++ b/custom/notify-user.nix
@@ -16,7 +16,7 @@ stdenv.mkDerivation {
16 16
17 main = do 17 main = do
18 env <- shellEnv 18 env <- shellEnv
19 either print return =<< runSh (env { envWorkDir = "/" } ) $ do 19 (either print return =<<) . runSh (env { envWorkDir = "/" } ) $ do
20 (envFile:_) <- liftIO $ glob "/home/${user}/.dbus/session-bus/*-0" 20 (envFile:_) <- liftIO $ glob "/home/${user}/.dbus/session-bus/*-0"
21 sessionAddr <- snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> input envFile 21 sessionAddr <- snd . break (== '=') . head . filter ("DBUS_SESSION_BUS_ADDRESS=" `isPrefixOf`) . lines <$> input envFile
22 env <- getShellEnv 22 env <- getShellEnv