2022-08-12 12:06:08 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.hackedbox;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
2024-04-21 15:54:59 +00:00
|
|
|
services.xserver.windowManager.hackedbox.enable = mkEnableOption "hackedbox";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = singleton {
|
|
|
|
name = "hackedbox";
|
|
|
|
start = ''
|
|
|
|
${pkgs.hackedbox}/bin/hackedbox &
|
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.hackedbox ];
|
|
|
|
};
|
|
|
|
}
|