diff options
| author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-21 21:15:27 +0200 |
|---|---|---|
| committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-21 21:15:27 +0200 |
| commit | 7024b348e2853c975ea9757ed36866dcacd8f24a (patch) | |
| tree | 666114aa0a9aa6e349e77fe78f4b771e30a74dfe /custom | |
| parent | 9f173f3e4449b5ddd94fbfbbfbf76678289c849c (diff) | |
| download | nixos-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.nix | 2 |
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 |
