summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorArseniy Seroka <jagajaga@users.noreply.github.com>2015-12-30 18:07:20 +0300
committerArseniy Seroka <jagajaga@users.noreply.github.com>2015-12-30 18:07:20 +0300
commit640d861d1399785815fc3fe8b227c4a07d7240cd (patch)
tree34b82f75e5a5104ec11765397de2b242c4fbf0bf /nixos
parent146c727924674f1bf59a216b01d8ed5f534c287a (diff)
parent952563d6201268180e27e33f4ed0f3dbe054f2be (diff)
downloadnixlib-640d861d1399785815fc3fe8b227c4a07d7240cd.tar
nixlib-640d861d1399785815fc3fe8b227c4a07d7240cd.tar.gz
nixlib-640d861d1399785815fc3fe8b227c4a07d7240cd.tar.bz2
nixlib-640d861d1399785815fc3fe8b227c4a07d7240cd.tar.lz
nixlib-640d861d1399785815fc3fe8b227c4a07d7240cd.tar.xz
nixlib-640d861d1399785815fc3fe8b227c4a07d7240cd.tar.zst
nixlib-640d861d1399785815fc3fe8b227c4a07d7240cd.zip
Merge pull request #12020 from ehmry/windowlab
WindowLab: initial pkg at 1.40
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/module-list.nix1
-rw-r--r--nixos/modules/services/x11/window-managers/windowlab.nix22
2 files changed, 23 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix
index 5c1cde98d3dc..7fc41b0e9ca7 100644
--- a/nixos/modules/module-list.nix
+++ b/nixos/modules/module-list.nix
@@ -441,6 +441,7 @@
   ./services/x11/window-managers/metacity.nix
   ./services/x11/window-managers/none.nix
   ./services/x11/window-managers/twm.nix
+  ./services/x11/window-managers/windowlab.nix
   ./services/x11/window-managers/wmii.nix
   ./services/x11/window-managers/xmonad.nix
   ./services/x11/xfs.nix
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 ];
+  };
+}