From a3bef46beb9c497582ae44efb06671c9df6c74c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 15 Nov 2022 19:36:56 +0100 Subject: [PATCH] README: fold installation methods --- README.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c6f0e99..333f2a6 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,8 @@ TODO: output of the cli --help You can use the NixOS module in one of the following ways: -### Flakes (Current recommendation) +
+ Flakes (Current recommendation) If you use nix flakes support: @@ -70,9 +71,11 @@ If you use nix flakes support: }; } ``` - -### [niv](https://github.com/nmattia/niv) - First add it to niv: +
+
+ niv + + First add it to [niv](https://github.com/nmattia/niv): ```console $ niv add nix-community/disko @@ -85,8 +88,9 @@ $ niv add nix-community/disko imports = [ "${(import ./nix/sources.nix).disko}/modules/disko.nix" ]; } ``` - -### nix-channel +
+
+ nix-channel As root run: @@ -102,8 +106,9 @@ $ nix-channel --update imports = [ ]; } ``` - -### fetchTarball +
+
+ fetchTarball Add the following to your configuration.nix: @@ -129,6 +134,7 @@ $ nix-channel --update ]; } ``` +
## Using the NixOS module