2 KiB
2 KiB
TODO
-
Secrets (started)
- SSH public keys removed from
nixos/hosts/nixos-server.nixandnixos/server-install-configuration.nix. Keys are not managed by NixOS there; use scp (see comments in those files and server-quickstart.md). - Optional: audit repo for other IDs (emails, UUIDs) if desired.
- Check out friend's setup: public repo w config + setup; private repo w IDs, keys and secrets.
- SSH keys (one key per purpose). Strategy: AGENTS.md. Actions:
- GitHub: In use:
id_ed25519_github. Add~/.ssh/config:Host github.comwithIdentityFile ~/.ssh/id_ed25519_githubandIdentitiesOnly yes. Removeid_rsa_githubfrom GitHub and locally once confirmed unused. - nixos-server: No
~/.ssh/authorized_keyson server → currently password auth. To switch to key auth: on servermkdir -p ~/.ssh; chmod 700 ~/.ssh; from Macscp ~/.ssh/id_ed25519_github.pub danny@SERVER:/tmp/; on servercat /tmp/id_ed25519_github.pub >> ~/.ssh/authorized_keys; chmod 600 ~/.ssh/authorized_keys. Optional: createid_ed25519_serversand use that only for server (then add Host in config). - Forgejo: When needed: create
id_ed25519_forgejo, add to forge, add Host in~/.ssh/config.
- GitHub: In use:
- SSH public keys removed from
-
Server hardware before testingDone. Fetched viassh danny@server 'sudo cat /etc/nixos/hardware-configuration.nix', replaced stub; added boot.loader and system.stateVersion; flake check passes. -
Server
- Continue configuring the server (add more services to
hosts/nixos-server.nixas needed). - Make sure SSH is only possible via LAN, using ssh keys and no password
- Make sudo not require a password
- Continue configuring the server (add more services to
-
Verify
- After 2–4: confirm server hardware in repo, flake builds, auto-rebuild works. On server,
systemctl is-active dotfiles-rebuild.timershould beactiveonce the flake config is live (see nixos/readme.md).
- After 2–4: confirm server hardware in repo, flake builds, auto-rebuild works. On server,
-
Rename nixos-server to
-
Give wifi access in stead of using ethernet.
-
Host telegram bot once again (for what purpose?)