mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-09 02:19:06 +02:00
Added polybar module
This commit is contained in:
parent
5381c1b837
commit
89c429169d
3 changed files with 460 additions and 14 deletions
25
home-manager-modules/polybar/default.nix
Normal file
25
home-manager-modules/polybar/default.nix
Normal 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;
|
||||
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue