From f4d0e231804ffaf23e7ef189ce9ffca4ab750db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 1 Jul 2018 21:56:38 +0100 Subject: [PATCH] README.md: proper sets in examples to satisfy syntax highlighter --- README.md | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 867ccb91a..8e8b067f0 100644 --- a/README.md +++ b/README.md @@ -207,7 +207,9 @@ Put all NixOS modules in the `modules` attribute of your repository: ```nix # default.nix -modules = ./import modules; +{ + modules = ./import modules; +} ``` ```nix @@ -232,9 +234,11 @@ For overlays use the `overlays` attribute: ```nix # default.nix -overlays = { - hello-overlay = ./import hello-overlay; -}; +{ + overlays = { + hello-overlay = ./import hello-overlay; + }; +} ``` ```nix @@ -249,11 +253,13 @@ self: super: { The result can be used like this: ```nix -nixpkgs = import { - overlays = [ - nixpkgs.nur.repos.mpickering.overlays.haskell-plugins - ]; -}; +{ + nixpkgs = import { + overlays = [ + nixpkgs.nur.repos.mpickering.overlays.haskell-plugins + ]; + }; +} ``` Put reusable nix functions that are intend for public use in the `lib` attribute: