diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2016-07-28 03:53:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-28 03:53:38 +0200 |
commit | 996c9837fad25ff74e6012514fbd5eb0866deaaf (patch) | |
tree | d26fa71aa3a4c89a722ea0e9037dec6fe2a666f2 /nixos/modules | |
parent | ea3e06710679b2a5a0b4cb4c282b814a3654295d (diff) | |
parent | 9e899e44511b50b5ac0d8b811e39bc9bb69db168 (diff) | |
download | nixlib-996c9837fad25ff74e6012514fbd5eb0866deaaf.tar nixlib-996c9837fad25ff74e6012514fbd5eb0866deaaf.tar.gz nixlib-996c9837fad25ff74e6012514fbd5eb0866deaaf.tar.bz2 nixlib-996c9837fad25ff74e6012514fbd5eb0866deaaf.tar.lz nixlib-996c9837fad25ff74e6012514fbd5eb0866deaaf.tar.xz nixlib-996c9837fad25ff74e6012514fbd5eb0866deaaf.tar.zst nixlib-996c9837fad25ff74e6012514fbd5eb0866deaaf.zip |
Merge pull request #17322 from RamKromberg/init/motif
motif: init at 2.3.6 & nedit: 5.6 -> 5.6a
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/mwm.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 94f1aa3add7e..f005decfa33c 100644 --- a/nixos/modules/services/x11/window-managers/default.nix +++ b/nixos/modules/services/x11/window-managers/default.nix @@ -18,6 +18,7 @@ in ./i3.nix ./jwm.nix ./metacity.nix + ./mwm.nix ./openbox.nix ./pekwm.nix ./notion.nix diff --git a/nixos/modules/services/x11/window-managers/mwm.nix b/nixos/modules/services/x11/window-managers/mwm.nix new file mode 100644 index 000000000000..31f7b725f747 --- /dev/null +++ b/nixos/modules/services/x11/window-managers/mwm.nix @@ -0,0 +1,25 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.services.xserver.windowManager.mwm; +in +{ + ###### interface + options = { + services.xserver.windowManager.mwm.enable = mkEnableOption "mwm"; + }; + + ###### implementation + config = mkIf cfg.enable { + services.xserver.windowManager.session = singleton { + name = "mwm"; + start = '' + ${pkgs.motif}/bin/mwm & + waitPID=$! + ''; + }; + environment.systemPackages = [ pkgs.motif ]; + }; +} |