summary refs log tree commit diff
path: root/nixos/modules/services/x11/window-managers/metacity.nix
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@gmail.com>2015-12-04 07:38:23 -0200
committerAndersonTorres <torres.anderson.85@gmail.com>2015-12-04 07:38:23 -0200
commit2955b2fcf4c14c0563025c35fe8c98a2a5d6588a (patch)
treef33388603fefca148ae25c103de42ccbc861d8c5 /nixos/modules/services/x11/window-managers/metacity.nix
parent12de4d5cb3bdd703904cf75aa6ddb9b9eb8f9b68 (diff)
downloadnixpkgs-2955b2fcf4c14c0563025c35fe8c98a2a5d6588a.tar
nixpkgs-2955b2fcf4c14c0563025c35fe8c98a2a5d6588a.tar.gz
nixpkgs-2955b2fcf4c14c0563025c35fe8c98a2a5d6588a.tar.bz2
nixpkgs-2955b2fcf4c14c0563025c35fe8c98a2a5d6588a.tar.lz
nixpkgs-2955b2fcf4c14c0563025c35fe8c98a2a5d6588a.tar.xz
nixpkgs-2955b2fcf4c14c0563025c35fe8c98a2a5d6588a.tar.zst
nixpkgs-2955b2fcf4c14c0563025c35fe8c98a2a5d6588a.zip
Getting rid of mkOption in NixOS window manager modules
Now the default way to define NixOS window manager modules is to use
mkEnableOption to describe the module itself.
In this commit, all files on nixos/modules/services/x11/window-managers
are changed.
Diffstat (limited to 'nixos/modules/services/x11/window-managers/metacity.nix')
-rw-r--r--nixos/modules/services/x11/window-managers/metacity.nix8
1 files changed, 1 insertions, 7 deletions
diff --git a/nixos/modules/services/x11/window-managers/metacity.nix b/nixos/modules/services/x11/window-managers/metacity.nix
index d13cbcfe40e..3e5229be634 100644
--- a/nixos/modules/services/x11/window-managers/metacity.nix
+++ b/nixos/modules/services/x11/window-managers/metacity.nix
@@ -12,13 +12,7 @@ in
 
 {
   options = {
-
-    services.xserver.windowManager.metacity.enable = mkOption {
-      default = false;
-      example = true;
-      description = "Enable the metacity window manager.";
-    };
-
+    services.xserver.windowManager.metacity.enable = mkEnableOption "metacity";
   };
 
   config = mkIf cfg.enable {