diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-23 18:40:22 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-23 18:41:49 +0100 |
commit | 9eb900ee6017d19d523f27d780d756cefc2b72fd (patch) | |
tree | cb3becee270fe46bd7d7b04a3271a57b15f46960 /notes | |
parent | build(flake): Use treefmt as nix formatter (diff) | |
download | nixos-server-9eb900ee6017d19d523f27d780d756cefc2b72fd.tar.gz nixos-server-9eb900ee6017d19d523f27d780d756cefc2b72fd.zip |
style(treewide): Format
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 |