diff options
Diffstat (limited to 'notes')
-rw-r--r-- | notes/deploy.md | 2 | ||||
-rw-r--r-- | notes/passwords.md | 2 | ||||
-rw-r--r-- | notes/taskserver.md | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/notes/deploy.md b/notes/deploy.md index 61dcbfc..2b274b5 100644 --- a/notes/deploy.md +++ b/notes/deploy.md @@ -1,5 +1,7 @@ # Full redeployment + After a complete server purge just load up the newest NixOS ISO, set the root password and run: + ```bash ipv4_address=$(dig +short "<hostname>"); # ipv6 seems to fail in this context nix run github:numtide/nixos-anywhere -- --flake .#<hostname> root@"$ipv4_address" diff --git a/notes/passwords.md b/notes/passwords.md index a26bc3e..d092782 100644 --- a/notes/passwords.md +++ b/notes/passwords.md @@ -1,6 +1,8 @@ # Passwords + These are created by running (and leaving everything to the default values, as we assume they are sound): + ```sh openssl rand -hex 64 | mkpasswd --password-fd=0 | wl-copy ``` diff --git a/notes/taskserver.md b/notes/taskserver.md index 36aeff0..04d5cd1 100644 --- a/notes/taskserver.md +++ b/notes/taskserver.md @@ -1,5 +1,7 @@ # User export + Use + ```bash nixos-taskserver user export my-company alice # or via ssh |