From 7f8037cfd79c0fadf3ac5958b553ce0609fa3190 Mon Sep 17 00:00:00 2001 From: Nicolas Pierron Date: Fri, 10 Sep 2010 18:03:16 +0000 Subject: [PATCH] Add additional shortcuts frequently used in NixOS. svn path=/nixpkgs/trunk/; revision=23733 --- pkgs/lib/properties.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/lib/properties.nix b/pkgs/lib/properties.nix index 4fa1b00a411..46854d0e143 100644 --- a/pkgs/lib/properties.nix +++ b/pkgs/lib/properties.nix @@ -309,7 +309,10 @@ rec { # Sugar to override the default value of the option by making a new # default value based on the configuration. - mkDefaultValue = content: mkOverride 1000 content; + mkDefaultValue = mkOverride 1000; + mkDefault = mkOverride 1000; + mkForce = mkOverride 50; + mkStrict = mkOverride 0; # Make the template traversal in function of the property traversal. If # the template define a non-empty attribute set, then the property is