From 0f6c79d561f45a58d4e278a4cf969dc5f657045a Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Sun, 3 Jul 2016 17:09:12 -0300 Subject: pekwm: init at 0.1.17 --- .../services/x11/window-managers/default.nix | 1 + .../modules/services/x11/window-managers/pekwm.nix | 25 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 nixos/modules/services/x11/window-managers/pekwm.nix (limited to 'nixos/modules/services/x11') diff --git a/nixos/modules/services/x11/window-managers/default.nix b/nixos/modules/services/x11/window-managers/default.nix index fce71bbda7e2..94f1aa3add7e 100644 --- a/nixos/modules/services/x11/window-managers/default.nix +++ b/nixos/modules/services/x11/window-managers/default.nix @@ -19,6 +19,7 @@ in ./jwm.nix ./metacity.nix ./openbox.nix + ./pekwm.nix ./notion.nix ./ratpoison.nix ./sawfish.nix diff --git a/nixos/modules/services/x11/window-managers/pekwm.nix b/nixos/modules/services/x11/window-managers/pekwm.nix new file mode 100644 index 000000000000..850335ce7ddf --- /dev/null +++ b/nixos/modules/services/x11/window-managers/pekwm.nix @@ -0,0 +1,25 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.services.xserver.windowManager.pekwm; +in +{ + ###### interface + options = { + services.xserver.windowManager.pekwm.enable = mkEnableOption "pekwm"; + }; + + ###### implementation + config = mkIf cfg.enable { + services.xserver.windowManager.session = singleton { + name = "pekwm"; + start = '' + ${pkgs.pekwm}/bin/pekwm & + waitPID=$! + ''; + }; + environment.systemPackages = [ pkgs.pekwm ]; + }; +} -- cgit 1.4.1