summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@gmail.com>2015-07-21 17:49:29 -0300
committerAndersonTorres <torres.anderson.85@gmail.com>2015-07-23 13:50:26 -0300
commitd004ac6857d4ef3f6670264c93834084a758123d (patch)
treeba87d96a1ad63737175299dcd18dbcb14d7bc102 /nixos
parentdc50222a0cfd588cf6e06aa35889991f3d3fd56a (diff)
downloadnixlib-d004ac6857d4ef3f6670264c93834084a758123d.tar
nixlib-d004ac6857d4ef3f6670264c93834084a758123d.tar.gz
nixlib-d004ac6857d4ef3f6670264c93834084a758123d.tar.bz2
nixlib-d004ac6857d4ef3f6670264c93834084a758123d.tar.lz
nixlib-d004ac6857d4ef3f6670264c93834084a758123d.tar.xz
nixlib-d004ac6857d4ef3f6670264c93834084a758123d.tar.zst
nixlib-d004ac6857d4ef3f6670264c93834084a758123d.zip
Oroborus: init at 2.0.20
Oroborus (named after the self-eating snake) is a minimalistic window manager.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/window-managers/oroborus.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/window-managers/oroborus.nix b/nixos/modules/services/x11/window-managers/oroborus.nix
new file mode 100644
index 000000000000..bd7e3396864b
--- /dev/null
+++ b/nixos/modules/services/x11/window-managers/oroborus.nix
@@ -0,0 +1,25 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+  cfg = config.services.xserver.windowManager.oroborus;
+in
+{
+  ###### interface
+  options = {
+    services.xserver.windowManager.oroborus.enable = mkEnableOption "oroborus";
+  };
+
+  ###### implementation
+  config = mkIf cfg.enable {
+    services.xserver.windowManager.session = singleton {
+      name = "oroborus";
+      start = ''
+        ${pkgs.oroborus}/bin/oroborus &
+        waitPID=$!
+      '';
+    };
+    environment.systemPackages = [ pkgs.oroborus ];
+  };
+}