1 { config, lib, pkgs, ... }:
6 cfg = config.services.xserver.windowManager.wmderland;
10 options.services.xserver.windowManager.wmderland = {
11 enable = mkEnableOption "wmderland";
13 extraSessionCommands = mkOption {
17 Shell commands executed just before wmderland is started.
21 extraPackages = mkOption {
22 type = with types; listOf package;
23 default = with pkgs; [
31 defaultText = literalExpression ''
42 Extra packages to be installed system wide.
47 config = mkIf cfg.enable {
48 services.xserver.windowManager.session = singleton {
51 ${cfg.extraSessionCommands}
53 ${pkgs.wmderland}/bin/wmderland &
57 environment.systemPackages = [
58 pkgs.wmderland pkgs.wmderlandc
59 ] ++ cfg.extraPackages;