No description
Find a file
2025-03-27 07:51:53 +08:00
configs chore: apply linting and cleaning 2025-03-27 07:51:53 +08:00
flake.lock refactor: flake.nix looks nicer 2025-03-26 20:48:08 +08:00
flake.nix feat(systems): add mellinoe back 2025-03-27 05:21:42 +08:00
README.md feat(nixos-anywhere): add deploy script and docs in README.md 2025-03-27 07:25:34 +08:00

"This is fucking brilliant. Nobody needs this, nobody has a real use for this and this definitely does not attract girls. Still, I'll try this and probably love it. -Tim Goeree"

As Yet Unreproducible

  • User passwords -> Managed with sops-nix
  • Spotify login
  • Firefox login

Adding Secrets with sops-nix

Secrets are stored in secrets/secrets.yaml. You can edit these secrets with sops secrets/secrets.yaml given you have an age private key stored at ~/.config/sops/age/keys.txt.

To decrypt these secrets with sops-nix during a rebuild, you must add your host public key to the .sops.yaml file. Generate it with cat /etc/ssh/ssh_host_ed25519_key.pub | ssh-to-age, add it to the file, then run sops updatekeys secrets/secrets.yaml.

Provisioning A New Machine

On the target system, boot into the NixOS installer and run:

# Create a password for the nixos user for SSH access.
passwd

# Start wpa_supplicant and connect to a wifi network.
sudo systemctl start wpa_supplicant
wpa_cli
> add_network
> set_network 0 ssid "SSID"
> set_network 0 psk "password"
> enable_network 0
> quit

# Get the IP address of the target system.
ip addr

On the host machine, run the command deploy --flake .#<hostname> --target-host <username>@<ip_address> to build the new system configuration and copy it over SSH along with the sops age key and ssh keys.

Acknowledgements