README.md: proper sets in examples to satisfy syntax highlighter

This commit is contained in:
Jörg Thalheim 2018-07-01 21:56:38 +01:00
parent 1a26978b52
commit f4d0e23180

View file

@ -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 <nixpkgs> {
overlays = [
nixpkgs.nur.repos.mpickering.overlays.haskell-plugins
];
};
{
nixpkgs = import <nixpkgs> {
overlays = [
nixpkgs.nur.repos.mpickering.overlays.haskell-plugins
];
};
}
```
Put reusable nix functions that are intend for public use in the `lib` attribute: