dotfiles/modules/desktop/polybar/default.nix

19 lines
566 B
Nix
Raw Normal View History

2021-09-09 21:55:28 +02:00
{ config, lib, pkgs, ... }:
let
base = {
services.polybar = {
enable = true;
2021-10-06 15:35:31 +02:00
package = pkgs.polybar.override { pulseSupport = true; };
script = ''
for m in $(polybar --list-monitors | ${pkgs.coreutils}/bin/cut -d":" -f1); do
MONITOR=$m polybar --reload bottom &
done
'';
2021-09-09 21:55:28 +02:00
config = ./config.ini;
2021-10-06 15:35:31 +02:00
extraConfig = builtins.readFile ./modules.ini
+ builtins.readFile ./colors.ini;
2021-09-09 21:55:28 +02:00
};
};
2021-10-06 15:35:31 +02:00
in { home-manager.users.moritz = { ... }: (base); }