Attempting to actually get the homelab up and running!
If running the repository from a new machine, it is required
to configure the age
key (~/.config/sops/age/keys.txt).
There are two keys stored in Bitwarden - one is an age
key
the other is an ssh
key.
You can pick whichever by running:
just bw-ssh-key
# or
just bw-age-key
Then check if the keys.txt file is properly populated and
try to open any secret with sops secrets/<name>.yaml
.
This command is supposed to run once to set up the remote host, anytime it runs against a machine, it'll format the disks.
nix run github:nix-community/nixos-anywhere -- \
--flake '.#unraid-nixos' <user>@<ip>
nixos-rebuild switch --use-remote-sudo --fast \
--flake .#unraid-nixos \
--target-host <user>@<ip> \
--build-host <user>@<ip>
deploy .#unraid-nixos