2020-03-28 22:48:43 -07:00
|
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
with lib;
|
2019-08-06 10:56:54 -07:00
|
|
|
{
|
2019-11-26 14:04:14 -08:00
|
|
|
imports = [
|
2020-03-28 22:48:43 -07:00
|
|
|
./common.nix
|
2019-11-26 14:04:14 -08:00
|
|
|
];
|
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; };
|
|
|
|
};
|
2019-11-26 14:04:14 -08:00
|
|
|
|
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 = {
|
2020-04-22 16:53:25 -07:00
|
|
|
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
|
|
|
};
|
|
|
|
|
2020-02-09 00:03:58 -08: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
|
|
|
};
|
|
|
|
}
|