From bc198b7f3f7e79b6dd1f9aa6766feb5d9216ec43 Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Tue, 11 Oct 2022 21:45:11 +0000 Subject: [PATCH] Add instructions how to install a new host --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index ac7a5df..6b8482e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ +## Install a new host + +This installs nixos on host `somehost`: +```bash +nix-shell -p nixUnstable --run 'nixos-install --flake https://gitlab.jalr.de/jalr/nixos-configuration#somehost --no-channel-copy' +``` + ## nix repl start an interactive environment for evaluating Nix expressions @@ -11,6 +18,7 @@ nix-repl> a=builtins.getFlake (toString ./.) $ nix repl nix-repl> :lf .# +``` ## Import GPG public key