make modules
This commit is contained in:
parent
7b16532575
commit
fae1c28497
4 changed files with 30 additions and 0 deletions
30
modules/desktop/bspwm/bspwm.nix
Normal file
30
modules/desktop/bspwm/bspwm.nix
Normal 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;
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue