summary refs log tree commit diff
path: root/modules/services/x11/window-managers/xmonad.nix
diff options
context:
space:
mode:
authorNicolas Pierron <nicolas.b.pierron@gmail.com>2009-09-15 08:33:45 +0000
committerNicolas Pierron <nicolas.b.pierron@gmail.com>2009-09-15 08:33:45 +0000
commit36573e5e5c7b330151a340755194fc7b4cb3fc25 (patch)
treeadd1cd0e28dd4dd1e1957847953fe6beab73e54c /modules/services/x11/window-managers/xmonad.nix
parent81ec373e1eb62421beab861e2a0f440023a3d88d (diff)
downloadnixpkgs-36573e5e5c7b330151a340755194fc7b4cb3fc25.tar
nixpkgs-36573e5e5c7b330151a340755194fc7b4cb3fc25.tar.gz
nixpkgs-36573e5e5c7b330151a340755194fc7b4cb3fc25.tar.bz2
nixpkgs-36573e5e5c7b330151a340755194fc7b4cb3fc25.tar.lz
nixpkgs-36573e5e5c7b330151a340755194fc7b4cb3fc25.tar.xz
nixpkgs-36573e5e5c7b330151a340755194fc7b4cb3fc25.tar.zst
nixpkgs-36573e5e5c7b330151a340755194fc7b4cb3fc25.zip
Convert module which are declaring options into modules separated with an
"options" set to declare options and a "config" set to define options.

svn path=/nixos/trunk/; revision=17148
Diffstat (limited to 'modules/services/x11/window-managers/xmonad.nix')
-rw-r--r--modules/services/x11/window-managers/xmonad.nix36
1 files changed, 17 insertions, 19 deletions
diff --git a/modules/services/x11/window-managers/xmonad.nix b/modules/services/x11/window-managers/xmonad.nix
index 3d2df59655a..2cbb5002d6c 100644
--- a/modules/services/x11/window-managers/xmonad.nix
+++ b/modules/services/x11/window-managers/xmonad.nix
@@ -6,27 +6,25 @@ let
 in
 
 {
-  services = {
-    xserver = {
-
-      windowManager = {
-        xmonad = {
-          enable = mkOption {
-            default = false;
-            example = true;
-            description = "Enable the xmonad window manager.";
-          };
-        };
-
-        session = mkIf cfg.enable [{
-          name = "xmonad";
-          start = "
-            ${pkgs.haskellPackages.xmonad}/bin/xmonad &
-            waitPID=$!
-          ";
-        }];
+  options = {
+    services.xserver.windowManager.xmonad = {
+      enable = mkOption {
+        default = false;
+        example = true;
+        description = "Enable the xmonad window manager.";
       };
+    };
+  };
 
+  config = {
+    services.xserver.windowManager = {
+      session = mkIf cfg.enable [{
+        name = "xmonad";
+        start = "
+          ${pkgs.haskellPackages.xmonad}/bin/xmonad &
+          waitPID=$!
+        ";
+      }];
     };
   };
 }