2023-07-15 17:15:38 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.dk;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
services.xserver.windowManager.dk = {
|
|
|
|
enable = lib.mkEnableOption (lib.mdDoc "dk");
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
package = lib.mkPackageOption pkgs "dk" { };
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = lib.singleton {
|
|
|
|
name = "dk";
|
|
|
|
start = ''
|
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
|
|
${cfg.package}/bin/dk &
|
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
};
|
|
|
|
}
|