From e5b7ad50adaef8b984edc958733e3601db2f7b22 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Thu, 18 Apr 2024 16:17:25 -0700 Subject: [PATCH] Update readme.md --- readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index e285ec3..1570e13 100644 --- a/readme.md +++ b/readme.md @@ -17,9 +17,10 @@ - `cp -r /etc/nixos ~/nixos_bak` Backup configuration - Checkout this repo into /etc/nixos: `rm -rf /etc/nixos` `git clone https://github.com/ringofstorms/dotfiles /etc/nixos` -- Copy hardware-configuration into the new /etc/nixos/hosts/HOSTNAME/hardware-configuration.nix `mkdir /etc/nixos/hosts/HOSTNAM && cp ~/hardware-configuration.nix /etx/nixos/hosts/HOSTNAME` +- Copy the backup into the new /etc/nixos/hosts/HOSTNAME dir `mkdir /etc/nixos/hosts/HOSTNAME && cp -r ~/nixos_bak/* /etx/nixos/hosts/HOSTNAME` - copy the existing configuration/other configuration nix of an existing system and edit it to desires state. [[ TODO make this step cleaner/easier... ]] - switch into flake mode `nixos-rebuild switch --flake /etc/nixos[#HOSTNAME]` and switch to new system +- Add this host to the top level `flake.nix` myHosts section - copy system ssh public key and create a key for user and copy those into the nixos secrets.nix file - `cat /etc/ssh/ssh_host_ed25519_key.pub` - `cat ~/.ssh/id_ed25519.pub`