about summary refs log tree commit diff
path: root/nixos/modules/services/x11/window-managers
diff options
context:
space:
mode:
authorEmery <emery@v36.space>2015-12-29 11:13:12 +0100
committerEmery <emery@v36.space>2015-12-30 11:10:30 +0100
commit952563d6201268180e27e33f4ed0f3dbe054f2be (patch)
tree6dee042a4e0089e55a33488a71d16762f3bd2722 /nixos/modules/services/x11/window-managers
parent2c9369dc439ef7e68ed4839b16dad0d2d7628b96 (diff)
downloadnixlib-952563d6201268180e27e33f4ed0f3dbe054f2be.tar
nixlib-952563d6201268180e27e33f4ed0f3dbe054f2be.tar.gz
nixlib-952563d6201268180e27e33f4ed0f3dbe054f2be.tar.bz2
nixlib-952563d6201268180e27e33f4ed0f3dbe054f2be.tar.lz
nixlib-952563d6201268180e27e33f4ed0f3dbe054f2be.tar.xz
nixlib-952563d6201268180e27e33f4ed0f3dbe054f2be.tar.zst
nixlib-952563d6201268180e27e33f4ed0f3dbe054f2be.zip
WindowLab: initial pkg at 1.40
http://nickgravgaard.com/windowlab/
Diffstat (limited to 'nixos/modules/services/x11/window-managers')
-rw-r--r--nixos/modules/services/x11/window-managers/windowlab.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/window-managers/windowlab.nix b/nixos/modules/services/x11/window-managers/windowlab.nix
new file mode 100644
index 000000000000..fb891a39fa41
--- /dev/null
+++ b/nixos/modules/services/x11/window-managers/windowlab.nix
@@ -0,0 +1,22 @@
+{lib, pkgs, config, ...}:
+
+let
+  cfg = config.services.xserver.windowManager.windowlab;
+in
+
+{
+  options = {
+    services.xserver.windowManager.windowlab.enable =
+      lib.mkEnableOption "windowlab";
+  };
+
+  config = lib.mkIf cfg.enable {
+    services.xserver.windowManager = {
+      session =
+        [{ name  = "windowlab";
+           start = "${pkgs.windowlab}/bin/windowlab";
+        }];
+    };
+    environment.systemPackages = [ pkgs.windowlab ];
+  };
+}