diff options
Diffstat (limited to 'modules/graphical/polybar/default.nix')
| -rw-r--r-- | modules/graphical/polybar/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/graphical/polybar/default.nix b/modules/graphical/polybar/default.nix new file mode 100644 index 0000000..7b02088 --- /dev/null +++ b/modules/graphical/polybar/default.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, ... }: + +{ + config = lib.mkIf config.graphical.enable { + services.polybar.enable = true; + home.packages = with pkgs; [ + coreutils + ]; + services.polybar.script = " +export PATH=${pkgs.coreutils}/bin/:$PATH +${config.services.polybar.package}/bin/polybar main +"; + services.polybar.config = lib.mkMerge [ + (import ./bar { inherit config lib; }) + (import ./module { inherit config lib; }) + { + settings = { + screenchange-reload = true; + }; + } + ]; + }; +} |
