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`~~