nixos/modules/desktop/bspwm/default.nix
2023-07-09 01:38:42 +03:00

34 lines
664 B
Nix

{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.desktop.bspwm;
in
{
options.modules.desktop.bspwm = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
services.xserver = {
enable = true;
windowManager.bspwm.enable = true;
libinput.enable = true;
};
users.users.sako.packages = with pkgs; [
polybar
rofi
networkmanagerapplet
];
home-manager.users.sako = { pkgs , ...}: {
xdg.configFile = {
bspwm = {
source = ../../../config/bspwm;
};
sxhkd = {
source = ../../../config/sxhkd;
};
};
};
};
}