make modules

This commit is contained in:
Sakooooo 2023-07-06 14:45:34 +03:00
parent 7b16532575
commit fae1c28497
Signed by: sako
GPG key ID: 3FD715D87D7725E0
4 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ options, config, lib, pkgs, ...}:
with lib;
let cfg = config.modules.desktop.bspwm;
in {
options.modules.desktop.bspwm = {
enable = mkBoolOpt false;
};
config = mkIf cfg.enable {
services.xserver = {
enable = true;
windowManager.bspwm.enable = true;
layout = "us";
};
xdg.configFile = {
bspwm = {
source = ../../../config/bspwm;
};
sxhkd = {
source = ../../../config/sxhkd;
};
};
users.users.sako.packages = with pkgs; [
rofi
(polybar.override {
pulseSupport = true;
})
];
};
}