helm/modules/desktop/bspwm.nix

46 lines
1 KiB
Nix
Raw Normal View History

2020-03-28 22:48:43 -07:00
{ config, options, lib, pkgs, ... }:
with lib;
2019-08-06 10:56:54 -07:00
{
imports = [
2020-03-28 22:48:43 -07:00
./common.nix
];
2019-08-06 10:56:54 -07:00
2020-03-28 22:48:43 -07:00
options.modules.desktop.bspwm = {
enable = mkOption { type = types.bool; default = false; };
};
2020-03-28 22:48:43 -07:00
config = mkIf config.modules.desktop.bspwm.enable {
environment.systemPackages = with pkgs; [
lightdm
dunst
libnotify
(polybar.override {
pulseSupport = true;
nlSupport = true;
})
];
services = {
compton.enable = true;
redshift.enable = true;
xserver = {
enable = true;
windowManager.default = "bspwm";
windowManager.bspwm = {
enable = true;
configFile = <config/bspwm/bspwmrc>;
sxhkd.configFile = <config/sxhkd/sxhkdrc>;
};
displayManager.lightdm.enable = true;
displayManager.lightdm.greeters.mini.enable = true;
};
2019-08-06 10:56:54 -07:00
};
# link recursively so other modules can link files in their folders
2020-03-28 22:48:43 -07:00
my.home.xdg.configFile."bspwm" = {
source = <config/bspwm>;
recursive = true;
2020-01-12 15:17:17 -08:00
};
2019-08-06 10:56:54 -07:00
};
}