nixos/modules/desktop/bspwm.nix
2023-07-07 22:46:47 +03:00

35 lines
712 B
Nix

{ options, config, lib, pkgs, ...}:
with lib;
let cfg = config.modules.desktop.bspwm;
in {
options.modules.desktop.bspwm = {
enable = mkOption {
type = types.bool;
default = 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
];
};
}