From 604fc929432597147ff8e8a1586d995c74e4e8aa Mon Sep 17 00:00:00 2001
From: wedens <kirill.wedens@gmail.com>
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.
---
 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 82ae27b16..547c7b90f 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'';
       };