helm/modules/desktop/stumpwm.nix
Henrik Lissner a75c64d04a
Rewrite to use flakes
This puts a hard dependency on 20.09, but that's to be expected.
2020-10-11 01:31:33 -04:00

37 lines
832 B
Nix

{ options, config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.desktop.stumpwm;
in {
options.modules.desktop.stumpwm = {
enable = mkBoolOpt false;
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
lightdm
dunst
libnotify
];
# 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;
};
};
# link recursively so other modules can link files in their folders
home.configFile."stumpwm" = {
source = "${configDir}/stumpwm";
recursive = true;
};
};
}