mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-13 16:12:40 +02:00
fix: style
This commit is contained in:
+3
-3
@@ -153,10 +153,10 @@ It will then symlink the secrets to the path defined by the `age.secrets.<name>.
|
|||||||
|
|
||||||
1. `cat` the sytem-level public key(`/etc/ssh/ssh_host_ed25519_key`) of the new host, and send it to an old host which has already been configured.
|
1. `cat` the sytem-level public key(`/etc/ssh/ssh_host_ed25519_key`) of the new host, and send it to an old host which has already been configured.
|
||||||
2. On the old host:
|
2. On the old host:
|
||||||
1. Add the public key to `secrets.nix`, and rekey all the secrets via `sudo agenix -r -i /etc/ssh/ssh_host_ed25519_key`.
|
1. Add the public key to `secrets.nix`, and rekey all the secrets via `sudo agenix -r -i /etc/ssh/ssh_host_ed25519_key`.
|
||||||
2. Commit and push the changes to `nix-secrets`.
|
2. Commit and push the changes to `nix-secrets`.
|
||||||
3. On the new host:
|
3. On the new host:
|
||||||
1. Clone this repo and run `nixos-rebuild switch` to deploy it, all the secrets will be decrypted automatically via the host private key.
|
1. Clone this repo and run `nixos-rebuild switch` to deploy it, all the secrets will be decrypted automatically via the host private key.
|
||||||
|
|
||||||
|
|
||||||
## Other Replacements
|
## Other Replacements
|
||||||
|
|||||||
Reference in New Issue
Block a user