From 17aaf04f7226d78398067667e3176ce69b66f2d6 Mon Sep 17 00:00:00 2001 From: wedens Date: Mon, 31 Dec 2018 19:01:48 +0700 Subject: [PATCH] polybar: add /run/wrappers/bin to PATH Without this the network module in polybar is unable to check connection as it invokes 'ping' command directly. (cherry picked from commit 604fc929432597147ff8e8a1586d995c74e4e8aa) --- modules/services/polybar.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/polybar.nix b/modules/services/polybar.nix index 82ae27b1..547c7b90 100644 --- a/modules/services/polybar.nix +++ b/modules/services/polybar.nix @@ -129,7 +129,7 @@ in Service = { Type = "forking"; - Environment = "PATH=${cfg.package}/bin"; + Environment = "PATH=${cfg.package}/bin:/run/wrappers/bin"; ExecStart = ''${pkgs.writeScriptBin "polybar-start" script}/bin/polybar-start''; };