nixos/modules/desktop/bspwm/default.nix

33 lines
607 B
Nix
Raw Normal View History

2023-07-08 20:00:13 +04:00
{ outputs, options, config, lib, pkgs, ...}:
2023-07-08 19:30:16 +04:00
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;
};
users.users.sako.packages = with pkgs; [
2023-07-08 20:00:13 +04:00
polybar
rofi
2023-07-08 19:30:16 +04:00
];
home-manager.users.sako = { pkgs , ...}: {
xdg.configFile = {
2023-07-08 20:00:13 +04:00
bspwm = {
source = ../../../config/bspwm;
2023-07-08 19:30:16 +04:00
};
2023-07-08 20:00:13 +04:00
sxhkd = {
source = ../../../config/sxhkd;
};
};
2023-07-08 19:30:16 +04:00
};
};
}