0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

hackedbox: init at 0.8.5.1

This commit is contained in:
AndersonTorres 2022-08-08 01:16:10 -03:00
parent 901978e1fd
commit 7b6ad60ab4
4 changed files with 89 additions and 0 deletions

View file

@ -21,6 +21,7 @@ in
./fluxbox.nix
./fvwm2.nix
./fvwm3.nix
./hackedbox.nix
./herbstluftwm.nix
./i3.nix
./jwm.nix

View file

@ -0,0 +1,25 @@
{ 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 ];
};
}