{ config, lib, pkgs, ... }: let cfg = config.sydnix.dank-material-shell; in { options.sydnix.dank-material-shell = { enable = lib.mkEnableOption "Dank Material Shell"; }; config = lib.mkIf cfg.enable { programs.dms-shell = { enable = true; enableDynamicTheming = false; }; # Start after xwayland-satellite, if possible. So DMS can start # with the DISPLAY env var set. systemd.user.services.dms = { wants = ["xwayland-satellite.service"]; after = ["xwayland-satellite.service"]; }; services.displayManager.dms-greeter = { enable = true; compositor.name = assert config.sydnix.niri.enable; "niri"; configHome = "/home/msyds"; # Really stupid. }; }; }