summary refs log tree commit diff
path: root/nixos/modules/services/x11/window-managers/stumpwm.nix
diff options
context:
space:
mode:
author_1126 <mail@elfsechsundzwanzig.de>2014-10-05 14:50:08 +0200
committer_1126 <mail@elfsechsundzwanzig.de>2014-10-05 14:50:08 +0200
commit7536d4128750e9482a61df4d6460eaebed9a1faf (patch)
treece230788dca86ab84c4091f82cc1d99ea782f360 /nixos/modules/services/x11/window-managers/stumpwm.nix
parentaafca4dd5109e796db742eab1788ff6a5f279f31 (diff)
downloadnixpkgs-7536d4128750e9482a61df4d6460eaebed9a1faf.tar
nixpkgs-7536d4128750e9482a61df4d6460eaebed9a1faf.tar.gz
nixpkgs-7536d4128750e9482a61df4d6460eaebed9a1faf.tar.bz2
nixpkgs-7536d4128750e9482a61df4d6460eaebed9a1faf.tar.lz
nixpkgs-7536d4128750e9482a61df4d6460eaebed9a1faf.tar.xz
nixpkgs-7536d4128750e9482a61df4d6460eaebed9a1faf.tar.zst
nixpkgs-7536d4128750e9482a61df4d6460eaebed9a1faf.zip
stumpwm: update and refactoring
This commit updates the stumpwm to version 0.9.8. Futhermore, it
refactors the expression quite a lot:

* stumpwm has been moved from lisp modules to window-managers.
* stumpwm has been added to the window managers NixOS knows about, this
  enables the user to add stumpwm as a default window manager in his
  NixOS configuration like with Xmonad or i3.
* the package has been split into stumpwm and stumpwmContrib. This is
  due to the fact that development of stumpwm and its extension modules
  has been split into two repositories. As of today, the release is the
  last one before this split. This split into two packages only reflect
  those upcoming upstream changes already.

It is planned to make the addition of the extension modules voluntarily,
like with Xmonads option "enableContribAndExtras". Furthermore it might
be possible to add an option to compile stumpwm with clisp instead of
sbcl.
Diffstat (limited to 'nixos/modules/services/x11/window-managers/stumpwm.nix')
-rw-r--r--nixos/modules/services/x11/window-managers/stumpwm.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/window-managers/stumpwm.nix b/nixos/modules/services/x11/window-managers/stumpwm.nix
new file mode 100644
index 00000000000..a876f13fd21
--- /dev/null
+++ b/nixos/modules/services/x11/window-managers/stumpwm.nix
@@ -0,0 +1,30 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+  cfg = config.services.xserver.windowManager.stumpwm;
+in
+
+{
+  options = {
+    services.xserver.windowManager.stumpwm = {
+      enable = mkOption {
+        type = types.bool;
+        default = false;
+        example = true;
+        description = "Enable the stumpwm tiling window manager.";
+      };
+    };
+  };
+
+  config = mkIf cfg.enable {
+    services.xserver.windowManager.session = singleton {
+      name = "stumpwm";
+      start = "
+        ${pkgs.stumpwm}/bin/stumpwm
+      ";
+    };
+    environment.systemPackages = [ pkgs.stumpwm ];
+  };
+}