nixos/modules/desktop/bspwm.nix

33 lines
663 B
Nix
Raw Normal View History

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 = {
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
];
};
}