helm/modules/desktop/bspwm.nix

45 lines
1,008 B
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 = {
picom.enable = true;
2020-03-28 22:48:43 -07:00
redshift.enable = true;
xserver = {
enable = true;
2020-04-22 16:52:48 -07:00
displayManager.defaultSession = "none+bspwm";
2020-03-28 22:48:43 -07:00
displayManager.lightdm.enable = true;
displayManager.lightdm.greeters.mini.enable = true;
2020-04-05 22:54:14 -07:00
windowManager.bspwm.enable = true;
2020-03-28 22:48:43 -07:00
};
2019-08-06 10:56:54 -07:00
};
# link recursively so other modules can link files in their folders
2020-04-05 22:54:14 -07:00
my.home.xdg.configFile = {
"sxhkd".source = <config/sxhkd>;
"bspwm" = {
source = <config/bspwm>;
recursive = true;
};
2020-01-12 15:17:17 -08:00
};
2019-08-06 10:56:54 -07:00
};
}