summary refs log tree commit diff
path: root/lib/modules.nix
diff options
context:
space:
mode:
authorBenjamin Staffin <benley@gmail.com>2017-03-11 17:39:40 -0500
committerBenjamin Staffin <benley@gmail.com>2017-03-11 17:48:43 -0500
commitd9123a2329f0d35af45d25aab5adb4348b8e3d56 (patch)
treedce5e2ee7790d49605cc9b3258f0740e29391644 /lib/modules.nix
parent3ea16e98b4722a86ccc38939100390b7abdfe72e (diff)
downloadnixpkgs-d9123a2329f0d35af45d25aab5adb4348b8e3d56.tar
nixpkgs-d9123a2329f0d35af45d25aab5adb4348b8e3d56.tar.gz
nixpkgs-d9123a2329f0d35af45d25aab5adb4348b8e3d56.tar.bz2
nixpkgs-d9123a2329f0d35af45d25aab5adb4348b8e3d56.tar.lz
nixpkgs-d9123a2329f0d35af45d25aab5adb4348b8e3d56.tar.xz
nixpkgs-d9123a2329f0d35af45d25aab5adb4348b8e3d56.tar.zst
nixpkgs-d9123a2329f0d35af45d25aab5adb4348b8e3d56.zip
lib: fix mixed tab/space indents, trailing whitespace, etc
Nix style seems to have settled on not using spaces between bound
variable names and the lambda : so I also tried to make those somewhat
more consistent throughout.
Diffstat (limited to 'lib/modules.nix')
-rw-r--r--lib/modules.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/modules.nix b/lib/modules.nix
index a7c397d2cf4..862488310d8 100644
--- a/lib/modules.nix
+++ b/lib/modules.nix
@@ -114,7 +114,7 @@ rec {
   /* Massage a module into canonical form, that is, a set consisting
      of ‘options’, ‘config’ and ‘imports’ attributes. */
   unifyModuleSyntax = file: key: m:
-    let metaSet = if m ? meta 
+    let metaSet = if m ? meta
       then { meta = m.meta; }
       else {};
     in
@@ -595,7 +595,7 @@ rec {
        functionality
 
      This show a warning if any a.b.c or d.e.f is set, and set the value of
-     x.y.z to the result of the merge function 
+     x.y.z to the result of the merge function
   */
   mkMergedOptionModule = from: to: mergeFn:
     { config, options, ... }:
@@ -611,12 +611,12 @@ rec {
           let val = getAttrFromPath f config;
               opt = getAttrFromPath f options;
           in
-          optionalString 
+          optionalString
             (val != "_mkMergedOptionModule")
             "The option `${showOption f}' defined in ${showFiles opt.files} has been changed to `${showOption to}' that has a different type. Please read `${showOption to}' documentation and update your configuration accordingly."
         ) from);
       } // setAttrByPath to (mkMerge
-             (optional 
+             (optional
                (any (f: (getAttrFromPath f config) != "_mkMergedOptionModule") from)
                (mergeFn config)));
     };