jwm: window manager module addition
commit82e12688a2cd00fdc1f3d134decb52942ced8f1d
authorJosé Romildo Malaquias <malaquias@gmail.com>
dateMon 7 Mar 2016, 11:21 (11 years ago)
parent48a9555
nixos/modules/services/x11/window-managers/default.nix+1
@@ -17,6 +17,7 @@ in
1717 ./fluxbox.nix
1818 ./herbstluftwm.nix
1919 ./i3.nix
20+ ./jwm.nix
2021 ./metacity.nix
2122 ./openbox.nix
2223 ./notion.nix
nixos/modules/services/x11/window-managers/jwm.nixnew file+25
@@ -0,0 +1,25 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.xserver.windowManager.jwm;
7+in
8+{
9+ ###### interface
10+ options = {
11+ services.xserver.windowManager.jwm.enable = mkEnableOption "jwm";
12+ };
13+
14+ ###### implementation
15+ config = mkIf cfg.enable {
16+ services.xserver.windowManager.session = singleton {
17+ name = "jwm";
18+ start = ''
19+ ${pkgs.jwm}/bin/jwm &
20+ waitPID=$!
21+ '';
22+ };
23+ environment.systemPackages = [ pkgs.jwm ];
24+ };
25+}