nixos/modules/desktop/bspwm.nix
2023-07-07 23:00:28 +03:00

32 lines
663 B
Nix

{ options, config, lib, pkgs, ...}:
with lib;
let cfg = config.modules.desktop.bspwm;
in {
options.modules.desktop.bspwm = {
enable = mkBoolOpt false;
};
config = mkIf cfg.enable {
services.xserver = {
enable = true;
windowManager.bspwm.enable = true;
libinput.enable = true;
};
xdg.configFile = {
bspwm = {
source = ../../../config/bspwm;
};
sxhkd = {
source = ../../../config/sxhkd;
};
};
users.users.sako.packages = with pkgs; [
rofi
(polybar.override {
pulseSupport = true;
})
xorg.xbacklight
networkmanagerapplet
];
};
}