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:
parent
901978e1fd
commit
7b6ad60ab4
4 changed files with 89 additions and 0 deletions
|
@ -21,6 +21,7 @@ in
|
|||
./fluxbox.nix
|
||||
./fvwm2.nix
|
||||
./fvwm3.nix
|
||||
./hackedbox.nix
|
||||
./herbstluftwm.nix
|
||||
./i3.nix
|
||||
./jwm.nix
|
||||
|
|
25
nixos/modules/services/x11/window-managers/hackedbox.nix
Normal file
25
nixos/modules/services/x11/window-managers/hackedbox.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue