From 5f75a750630bed1c075b2cb885351cf4ee1d4043 Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Fri, 5 Jan 2024 23:29:19 +0000 Subject: [PATCH] Update README.md --- README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c03dbca..101c211 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,16 @@ System and user configuration for NixOS-based systems. | **Theme:** | adwaita | | **Terminal:** | Console | -## Quick start -1. Copy SSH keypair and `known_hosts` to `~/.ssh` -1. Import GPG keys and set ultimate trust with `echo "KEYID:6:" | gpg --import-ownertrust` -1. `git clone git@git.vimium.com:jordan/nix-config.git projects/jordan/nix-config` -1. `sudo nixos-rebuild switch --flake .#` +## Provisioning +> [nixos-anywhere](https://github.com/nix-community/nixos-anywhere) is the module used for provisioning + +Generate a new SSH host key in "$temp/etc/ssh" as per [this guide](https://nix-community.github.io/nixos-anywhere/howtos/secrets.html#example-decrypting-an-openssh-host-key-with-pass). + +Then run; +``` +nix run github:nix-community/nixos-anywhere -- \ + --disk-encryption-keys /tmp/secret.key /tmp/secret.key \ + --extra-files "$temp" \ + --flake .# \ + root@ +```