2023-07-06 15:45:34 +04:00
|
|
|
{ options, config, lib, pkgs, ...}:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.modules.desktop.bspwm;
|
|
|
|
in {
|
|
|
|
options.modules.desktop.bspwm = {
|
2023-07-08 00:00:28 +04:00
|
|
|
enable = mkBoolOpt false;
|
2023-07-06 15:45:34 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
windowManager.bspwm.enable = true;
|
2023-07-07 21:38:41 +04:00
|
|
|
libinput.enable = true;
|
2023-07-06 15:45:34 +04:00
|
|
|
};
|
|
|
|
xdg.configFile = {
|
|
|
|
bspwm = {
|
|
|
|
source = ../../../config/bspwm;
|
|
|
|
};
|
|
|
|
sxhkd = {
|
|
|
|
source = ../../../config/sxhkd;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
users.users.sako.packages = with pkgs; [
|
|
|
|
rofi
|
|
|
|
(polybar.override {
|
|
|
|
pulseSupport = true;
|
|
|
|
})
|
2023-07-07 13:37:44 +04:00
|
|
|
xorg.xbacklight
|
2023-07-07 21:38:41 +04:00
|
|
|
networkmanagerapplet
|
2023-07-06 15:45:34 +04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|