summary refs log tree commit diff
path: root/nixos/modules/services/x11
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@gmail.com>2016-07-03 17:09:12 -0300
committerAndersonTorres <torres.anderson.85@gmail.com>2016-07-09 22:26:24 -0300
commit0f6c79d561f45a58d4e278a4cf969dc5f657045a (patch)
tree5abf336a9410a7e8369ea4d85dce90f87c8af736 /nixos/modules/services/x11
parent931706cdc129dc27a2948114de9f8aaa2c12d33f (diff)
downloadnixlib-0f6c79d561f45a58d4e278a4cf969dc5f657045a.tar
nixlib-0f6c79d561f45a58d4e278a4cf969dc5f657045a.tar.gz
nixlib-0f6c79d561f45a58d4e278a4cf969dc5f657045a.tar.bz2
nixlib-0f6c79d561f45a58d4e278a4cf969dc5f657045a.tar.lz
nixlib-0f6c79d561f45a58d4e278a4cf969dc5f657045a.tar.xz
nixlib-0f6c79d561f45a58d4e278a4cf969dc5f657045a.tar.zst
nixlib-0f6c79d561f45a58d4e278a4cf969dc5f657045a.zip
pekwm: init at 0.1.17
Diffstat (limited to 'nixos/modules/services/x11')
-rw-r--r--nixos/modules/services/x11/window-managers/default.nix1
-rw-r--r--nixos/modules/services/x11/window-managers/pekwm.nix25
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 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 ];
+  };
+}