nixos/modules/desktop/bspwm/polybar/default.nix

24 lines
488 B
Nix
Raw Normal View History

2023-07-12 16:42:51 +04:00
{ outputs, options, config, lib, pkgs, ...}:
let
cfg = config.modules.desktop.bspwm.polybar;
in
{
options.modules.desktop.bspwm.polybar = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2023-07-12 16:42:51 +04:00
};
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2023-07-12 16:42:51 +04:00
users.users.sako.packages = with pkgs; [
polybar
];
home-manager.users.sako = { pkgs, ...}: {
xdg.configFile = {
polybar = {
2023-07-12 16:44:24 +04:00
source = ../../../../config/polybar;
2023-07-12 16:42:51 +04:00
recursive = true;
};
};
};
};
}