fix tor unlock for chungus

This commit is contained in:
Ingolf Wagner 2024-08-08 21:19:42 +02:00
parent 1b9105f158
commit 0780abb35d
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 11 additions and 7 deletions

View file

@ -16,10 +16,14 @@ with types;
name = "initrd"; name = "initrd";
addressPrefix = "init"; addressPrefix = "init";
}; };
boot.initrd.secrets = { boot.initrd.secrets =
"/etc/tor/onion/bootup/tor.priv" = config.clan.core.facts.services."initrd.tor".secret."tor.initrd.priv".path; mapAttrs' (name: file: nameValuePair "/etc/tor/onion/bootup/${name}" file)
"/etc/tor/onion/bootup/hostname" = config.clan.core.facts.services."initrd.tor".secret."tor.initrd.hostname".path; (genAttrs [
}; "hostname"
"hs_ed25519_public_key"
"hs_ed25519_secret_key"
]
(secret: config.clan.core.facts.services."initrd.tor".secret."tor.initrd.${secret}".path));
boot.initrd.systemd.storePaths = [ boot.initrd.systemd.storePaths = [
pkgs.tor pkgs.tor

View file

@ -150,11 +150,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1721508205, "lastModified": 1723143645,
"narHash": "sha256-X4xVtKAkA/gVqIaCw0L5Rk9062VqlHiH0VK5En5Oi5s=", "narHash": "sha256-/71L2ZBM9AmUpEQC19Rf7AxA+BhIquObB8aZDkfVRz8=",
"owner": "mrvandalo", "owner": "mrvandalo",
"repo": "clan-fact-generators", "repo": "clan-fact-generators",
"rev": "b3fb36c18871861f510330c272b455eb718cd3e4", "rev": "620c5d3185594b3e2d91e29a7590f44abae4319c",
"type": "github" "type": "github"
}, },
"original": { "original": {