depot/third_party/nixpkgs/nixos/modules/services/x11/window-managers/hackedbox.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

25 lines
518 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.xserver.windowManager.hackedbox;
in
{
###### interface
options = {
services.xserver.windowManager.hackedbox.enable = mkEnableOption "hackedbox";
};
###### implementation
config = mkIf cfg.enable {
services.xserver.windowManager.session = singleton {
name = "hackedbox";
start = ''
${pkgs.hackedbox}/bin/hackedbox &
waitPID=$!
'';
};
environment.systemPackages = [ pkgs.hackedbox ];
};
}