2020-10-01 15:46:04 -07:00
|
|
|
{ options, config, lib, pkgs, ... }:
|
2020-02-01 23:16:36 -08:00
|
|
|
|
2020-10-01 15:46:04 -07:00
|
|
|
with lib;
|
|
|
|
with lib.my;
|
|
|
|
let cfg = config.modules.desktop.stumpwm;
|
|
|
|
in {
|
|
|
|
options.modules.desktop.stumpwm = {
|
|
|
|
enable = mkBoolOpt false;
|
|
|
|
};
|
2020-02-01 23:16:36 -08:00
|
|
|
|
2020-10-01 15:46:04 -07:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
lightdm
|
|
|
|
dunst
|
|
|
|
libnotify
|
|
|
|
];
|
2020-02-01 23:16:36 -08:00
|
|
|
|
2020-10-01 15:46:04 -07:00
|
|
|
# master.services.picom.enable = true;
|
|
|
|
services = {
|
|
|
|
redshift.enable = true;
|
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
windowManager.default = "stumpwm";
|
|
|
|
windowManager.stumpwm.enable = true;
|
|
|
|
displayManager.lightdm.enable = true;
|
|
|
|
displayManager.lightdm.greeters.mini.enable = true;
|
|
|
|
};
|
2020-02-01 23:16:36 -08:00
|
|
|
};
|
|
|
|
|
2020-10-01 15:46:04 -07:00
|
|
|
# link recursively so other modules can link files in their folders
|
|
|
|
home.configFile."stumpwm" = {
|
|
|
|
source = "${configDir}/stumpwm";
|
|
|
|
recursive = true;
|
|
|
|
};
|
2020-02-01 23:16:36 -08:00
|
|
|
};
|
|
|
|
}
|