- after dd, if ~/.config/homelab/<config>/age.txt exists, mount the FAT boot partition and drop it as sops-age.txt (mercury). Key stays off-repo + out of the store + out of the image; no manual mount step.
18 lines
766 B
Nix
18 lines
766 B
Nix
{ config, ... }:
|
|
|
|
# sops-nix wiring for mercury. Encrypted values in ../../secrets/mercury.yaml.
|
|
#
|
|
# SD images have no `--extra-files` step, so mercury uses a DEDICATED age key
|
|
# placed on the FAT boot partition. `./deploy flash mercury <dev>` does this
|
|
# automatically (copies ~/.config/homelab/mercury/age.txt -> sops-age.txt).
|
|
# The key never enters the repo, the nix store, or the image itself.
|
|
{
|
|
sops.defaultSopsFile = ../../secrets/mercury.yaml;
|
|
sops.age.keyFile = "/boot/firmware/sops-age.txt";
|
|
|
|
# darman's console password (SSH is key-only regardless). Different hash per
|
|
# host = different password per host.
|
|
sops.secrets.darman_password.neededForUsers = true;
|
|
users.users.darman.hashedPasswordFile = config.sops.secrets.darman_password.path;
|
|
}
|