Added polybar module

This commit is contained in:
Julien Malka 2021-12-19 19:26:27 +01:00
parent 5381c1b837
commit 89c429169d
3 changed files with 460 additions and 14 deletions

View file

@ -0,0 +1,25 @@
{ config, pkgs, lib, ... }:
let
cfg = config.luj.polybar;
in
with lib; {
options.luj.polybar = {
enable = mkEnableOption "Enable polybar";
};
config = mkIf cfg.enable {
services.polybar = {
enable = true;
package = pkgs.polybar.override {
i3GapsSupport = true;
};
script = "polybar -q PolybarTony &";
};
xdg.configFile."polybar/config".source = lib.mkForce ./config;
};
}