23 lines
488 B
Nix
23 lines
488 B
Nix
{ outputs, options, config, lib, pkgs, ...}:
|
|
let
|
|
cfg = config.modules.desktop.bspwm.polybar;
|
|
in
|
|
{
|
|
options.modules.desktop.bspwm.polybar = {
|
|
enable = lib.mkEnableOption false;
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
users.users.sako.packages = with pkgs; [
|
|
polybar
|
|
];
|
|
home-manager.users.sako = { pkgs, ...}: {
|
|
xdg.configFile = {
|
|
polybar = {
|
|
source = ../../../../config/polybar;
|
|
recursive = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|