mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-26 05:40:52 +01:00
25 lines
436 B
Nix
25 lines
436 B
Nix
{ 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;
|
|
|
|
};
|
|
}
|