2022-08-08 05:16:10 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.hackedbox;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
2022-08-28 20:18:44 +01:00
|
|
|
services.xserver.windowManager.hackedbox.enable = mkEnableOption (lib.mdDoc "hackedbox");
|
2022-08-08 05:16:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = singleton {
|
|
|
|
name = "hackedbox";
|
|
|
|
start = ''
|
|
|
|
${pkgs.hackedbox}/bin/hackedbox &
|
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.hackedbox ];
|
|
|
|
};
|
|
|
|
}
|