about summary refs log tree commit diff
path: root/nixos/modules/misc
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2019-05-04 17:29:04 +0200
committerAndreas Rammhold <andreas@rammhold.de>2019-05-04 17:29:04 +0200
commit45f58cad33cfa586f60aa9d94841a73756e2807a (patch)
tree80366ccf158f71f690f3788640f534f152b5c78e /nixos/modules/misc
parent8bc70c937b3e28a28366ff3605e5cf293faf1e20 (diff)
downloadnixlib-45f58cad33cfa586f60aa9d94841a73756e2807a.tar
nixlib-45f58cad33cfa586f60aa9d94841a73756e2807a.tar.gz
nixlib-45f58cad33cfa586f60aa9d94841a73756e2807a.tar.bz2
nixlib-45f58cad33cfa586f60aa9d94841a73756e2807a.tar.lz
nixlib-45f58cad33cfa586f60aa9d94841a73756e2807a.tar.xz
nixlib-45f58cad33cfa586f60aa9d94841a73756e2807a.tar.zst
nixlib-45f58cad33cfa586f60aa9d94841a73756e2807a.zip
nixos/misc/nixpkgs: fixed syntax error in overlays example
I was pointed towards a small syntax error in the `nixpkgs.overlays`
documentation. There was a trailing semicolon after the overlay
function.

I also aligned the code a bit better so opening and closing brackets can
be visually matched much better (IMO).
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r--nixos/modules/misc/nixpkgs.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/modules/misc/nixpkgs.nix b/nixos/modules/misc/nixpkgs.nix
index 3a717fddaba2..9d19dd2a7ff2 100644
--- a/nixos/modules/misc/nixpkgs.nix
+++ b/nixos/modules/misc/nixpkgs.nix
@@ -127,13 +127,14 @@ in
       default = [];
       example = literalExample
         ''
-          [ (self: super: {
+          [
+            (self: super: {
               openssh = super.openssh.override {
                 hpnSupport = true;
                 kerberos = self.libkrb5;
               };
-            };
-          ) ]
+            })
+          ]
         '';
       type = types.listOf overlayType;
       description = ''