From 46374a40b42ba8cc23878546fb12bbc970a86ab8 Mon Sep 17 00:00:00 2001 From: David Houston Date: Wed, 24 Mar 2021 19:54:26 -0400 Subject: [PATCH] Add "Nix" tags to 3 Nix code blocks to enable syntax highlighting, add "bash" tag to one. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5cca57e..723b435 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ There are different ways to install nix-direnv, pick your favourite: In `$HOME/.config/nixpkgs/home.nix` add -``` +```Nix { pkgs, ... }: { @@ -45,7 +45,7 @@ Optional: To protect your nix-shell against garbage collection you also need to If you are on NixOS also add the following lines to your `/etc/nixos/configuration.nix`: -``` +```Nix { pkgs, ... }: { nix.extraOptions = '' keep-outputs = true @@ -65,7 +65,7 @@ keep-outputs = true In `/etc/nixos/configuration.nix`: -``` +```Nix { pkgs, ... }: { environment.systemPackages = with pkgs; [ direnv nix-direnv ]; # nix options for derivations to persist garbage collection @@ -96,7 +96,7 @@ nix-env -f '' -iA nix-direnv Then add nix-direnv to `$HOME/.direnvrc`: -``` +```bash source $HOME/.nix-profile/share/nix-direnv/direnvrc ```