From 40454590ffad2f6e2d41e9d519821506adac785d Mon Sep 17 00:00:00 2001 From: Stefan Ellmauthaler Date: Thu, 11 Nov 2021 17:01:39 +0100 Subject: [PATCH] readme update Signed-off-by: Stefan Ellmauthaler --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 90058b1..a074b0c 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,12 @@ ## Deploy on a new machine * setup the filesystem as you see fit * check out repository to `/mnt/etc/nixos` -* cd into `/mnt/etc/nixos` -* run 'nixos-generate-config --root /mnt' (Note: it won't overwrite the configuration.nix in the folder) -* create `machine//default.nix` -* add machine specific configuration to `default.nix` +* run `nixos-generate-config --root /mnt` in `/mnt/etc/nixos` +* create `machine//default.nix` and add machine specific configuration to it * move `hardware-configuration.nix` to `machine//hardware-configuration.nix` -* run `nixos-install --no-root-passwd --flake .#hostname` +* add your machine to `/mnt/etc/nixos/default.nix` +* stage the machine-folder to the git-repository +* run + * `nix-shell -p nixFlakes' + * 'sudo _NIXOS_REBUILD_REEXEC=1 nixos-install --no-root-passwd --flake .#hostname' + * ~~`nixos-install --no-root-passwd --flake .#hostname`~~