about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRobert Glossop <robgssp@gmail.com>2015-11-04 09:15:52 -0500
committerRobert Glossop <robgssp@gmail.com>2015-11-08 18:49:40 -0500
commit5623e1b145a8c1b42c41c5dd163804cca0064b75 (patch)
tree288b04e4823a1aaa4bcc2bad407b5437e7cfe2c3 /nixos
parent6fa6ff9e2517dbc28fd0744b493c8a6b672dfa2c (diff)
downloadnixlib-5623e1b145a8c1b42c41c5dd163804cca0064b75.tar
nixlib-5623e1b145a8c1b42c41c5dd163804cca0064b75.tar.gz
nixlib-5623e1b145a8c1b42c41c5dd163804cca0064b75.tar.bz2
nixlib-5623e1b145a8c1b42c41c5dd163804cca0064b75.tar.lz
nixlib-5623e1b145a8c1b42c41c5dd163804cca0064b75.tar.xz
nixlib-5623e1b145a8c1b42c41c5dd163804cca0064b75.tar.zst
nixlib-5623e1b145a8c1b42c41c5dd163804cca0064b75.zip
Add the CLFSWM window manager
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/window-managers/clfswm.nix31
-rw-r--r--nixos/modules/services/x11/window-managers/default.nix1
2 files changed, 32 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/window-managers/clfswm.nix b/nixos/modules/services/x11/window-managers/clfswm.nix
new file mode 100644
index 000000000000..9d8eecb56c77
--- /dev/null
+++ b/nixos/modules/services/x11/window-managers/clfswm.nix
@@ -0,0 +1,31 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+  cfg = config.services.xserver.windowManager.clfswm;
+in
+
+{
+  options = {
+    services.xserver.windowManager.clfswm = {
+      enable = mkOption {
+        type = types.bool;
+        default = false;
+        example = true;
+        description = "Enable the clfswm tiling window manager.";
+      };
+    };
+  };
+
+  config = mkIf cfg.enable {
+    services.xserver.windowManager.session = singleton {
+      name = "clfswm";
+      start = ''
+        ${pkgs.clfswm}/bin/clfswm &
+        waitPID=$!
+      '';
+    };
+    environment.systemPackages = [ pkgs.clfswm ];
+  };
+}
diff --git a/nixos/modules/services/x11/window-managers/default.nix b/nixos/modules/services/x11/window-managers/default.nix
index 4751de07a15d..31f42f5ffb9f 100644
--- a/nixos/modules/services/x11/window-managers/default.nix
+++ b/nixos/modules/services/x11/window-managers/default.nix
@@ -10,6 +10,7 @@ in
   imports = [
     ./afterstep.nix
     ./bspwm.nix
+    ./clfswm.nix
     ./compiz.nix
     ./fluxbox.nix
     ./herbstluftwm.nix