diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2022-08-08 17:57:37 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 17:57:37 -0300 |
commit | 14c47e30b86a0793540513f0c4b173283be646d4 (patch) | |
tree | 4d8a704772a1393d78a0d56a19cc9b62d5ed16e2 /nixos | |
parent | cabc115bc2180e3c2513c4ff345e3d58305ff491 (diff) | |
parent | 7b6ad60ab4cd0661c5aa515a7de28ddda73a3e70 (diff) |
Merge pull request #185630 from AndersonTorres/wip-hackedbox
hackedbox: init at 0.8.5.1
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/x11/window-managers/default.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/x11/window-managers/hackedbox.nix | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/window-managers/default.nix b/nixos/modules/services/x11/window-managers/default.nix index 4e56b393e2e56..52083dcaaa25b 100644 --- a/nixos/modules/services/x11/window-managers/default.nix +++ b/nixos/modules/services/x11/window-managers/default.nix @@ -21,6 +21,7 @@ in ./fluxbox.nix ./fvwm2.nix ./fvwm3.nix + ./hackedbox.nix ./herbstluftwm.nix ./i3.nix ./jwm.nix diff --git a/nixos/modules/services/x11/window-managers/hackedbox.nix b/nixos/modules/services/x11/window-managers/hackedbox.nix new file mode 100644 index 0000000000000..641cf1bdcbe23 --- /dev/null +++ b/nixos/modules/services/x11/window-managers/hackedbox.nix @@ -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 ]; + }; +} |