diff options
author | Nicolas Pierron <nicolas.b.pierron@gmail.com> | 2009-09-15 08:33:45 +0000 |
---|---|---|
committer | Nicolas Pierron <nicolas.b.pierron@gmail.com> | 2009-09-15 08:33:45 +0000 |
commit | 36573e5e5c7b330151a340755194fc7b4cb3fc25 (patch) | |
tree | add1cd0e28dd4dd1e1957847953fe6beab73e54c /modules/services/x11/window-managers/xmonad.nix | |
parent | 81ec373e1eb62421beab861e2a0f440023a3d88d (diff) | |
download | nixpkgs-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.nix | 36 |
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=$! + "; + }]; }; }; } |