From d4bcd1161e58ebab7346f25132cef07f3b56afdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 20 May 2023 04:37:06 +0200 Subject: [PATCH] Expand install instructions --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 68ac1d94..dae3a856 100644 --- a/README.md +++ b/README.md @@ -267,9 +267,9 @@ When adding new disks the paths under ``/dev/disk/by-id/`` should be used, so th - Set a password for the NixOS user - `rsync` the this directory into the live system - generate and apply disk layout with disko -- Generate ´hardware-configuration.nix` -- Install nixos system +- Generate ´hardware-configuration.nix` with ``sudo nixos-generate-config --no-filesystems --root /mnt`` +- Install nixos system with ``sudo nixos-install --root /mnt --flake .#HOSTNAME`` - After a reboot add age key to sops-nix with ``nix shell nixpkgs#ssh-to-age`` and ``ssh-to-age < /etc/ssh/ssh_host_ed25519_key.pub`` -- Add ``/etc/machine-id`` to secrets +- Add ``/etc/machine-id`` and luks password to secrets - Enable and deploy secrets again - Commit everything and push