diff options
author | Christoph Hrdinka <c.github@hrdinka.at> | 2016-03-08 18:23:52 +0100 |
---|---|---|
committer | Christoph Hrdinka <c.github@hrdinka.at> | 2016-03-08 18:23:52 +0100 |
commit | 1e3fef77d5b777f413595e4d9fc3d1334c9354d2 (patch) | |
tree | 48e7c504cb44f9b9490b82da43c69e82d2d85e3a /nixos/modules | |
parent | efb76ae10bfa484205d5bd9bbb58c1d32654d984 (diff) | |
parent | 5856e89b2cbccf40d2f1b8d72e0356cbbedc9e2d (diff) | |
download | nixlib-1e3fef77d5b777f413595e4d9fc3d1334c9354d2.tar nixlib-1e3fef77d5b777f413595e4d9fc3d1334c9354d2.tar.gz nixlib-1e3fef77d5b777f413595e4d9fc3d1334c9354d2.tar.bz2 nixlib-1e3fef77d5b777f413595e4d9fc3d1334c9354d2.tar.lz nixlib-1e3fef77d5b777f413595e4d9fc3d1334c9354d2.tar.xz nixlib-1e3fef77d5b777f413595e4d9fc3d1334c9354d2.tar.zst nixlib-1e3fef77d5b777f413595e4d9fc3d1334c9354d2.zip |
Merge pull request #13739 from romildo/update.jwm
jwm: 2.2.2 -> 1406
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/x11/window-managers/default.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/x11/window-managers/jwm.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 26dfbb1f4e18..63136beac710 100644 --- a/nixos/modules/services/x11/window-managers/default.nix +++ b/nixos/modules/services/x11/window-managers/default.nix @@ -17,6 +17,7 @@ in ./fluxbox.nix ./herbstluftwm.nix ./i3.nix + ./jwm.nix ./metacity.nix ./openbox.nix ./notion.nix diff --git a/nixos/modules/services/x11/window-managers/jwm.nix b/nixos/modules/services/x11/window-managers/jwm.nix new file mode 100644 index 000000000000..0e8dab2e9224 --- /dev/null +++ b/nixos/modules/services/x11/window-managers/jwm.nix @@ -0,0 +1,25 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.services.xserver.windowManager.jwm; +in +{ + ###### interface + options = { + services.xserver.windowManager.jwm.enable = mkEnableOption "jwm"; + }; + + ###### implementation + config = mkIf cfg.enable { + services.xserver.windowManager.session = singleton { + name = "jwm"; + start = '' + ${pkgs.jwm}/bin/jwm & + waitPID=$! + ''; + }; + environment.systemPackages = [ pkgs.jwm ]; + }; +} |