agenix | 353 Members | |
| age-encrypted secrets for NixOS https://github.com/ryantm/agenix/ | 90 Servers |
| Sender | Message | Time |
|---|---|---|
| 29 Dec 2025 | ||
* I'm trying to run agenix with age-tpm (again) and it doesn't seem to decrypt secrets on reboot. they do decrypt on nixos-rebuild switch | 17:31:15 | |
| a ha: | 18:16:50 | |
| maybe the TPM isn't available this early in boot? | 18:18:31 | |
cause /run/current-system/activate works | 18:38:12 | |
boot.initrd.availableKernelModules = ["tpm_crb" "tpm_tis"]; did the trick! | 18:51:22 | |
| 30 Dec 2025 | ||
| 14:47:18 | ||
| 17:10:28 | ||
| I already put this in #impermanence:nixos.org ftr. is there an elegant solution to the sort of 'conflict' between Agenix and Impermanence? That being, Agenix uses the host keys in /etc/ssh before Impermanence fetches the persistant directory /etc/ssh. This leads Agenix to fail. The solution I've found is not pretty; it mounts /nix/persist (my persistant directory) to /btrfs_tmp/root/nix before copying /btrfs_tmp/root/nix/persist/etc/ssh to /btrfs_tmp/root/etc/ssh. This arrangement is showcased in https://git.mtgmonkey.net/Andromeda/conf/src/commit/0468cf2621e8ef812f774bbf2eed396b4c0d4602 in machines/lenovo and is what I am currently using. | 17:12:48 | |
| 23:38:40 | ||
| 23:40:10 | ||
| 31 Dec 2025 | ||
In reply to @andromeda:tchncs.de why not just
full disclosure i haven't yet tried this | 17:01:08 | |
| 18:15:00 | ||
| okay, i just did this and it does work! | 18:27:02 | |
| what I can't figure out is how to make sure my user pw gets set at install time... I guess you kind of can't | 18:33:35 | |
You probably want to just use hashedPassword | 18:37:48 | |
In reply to @k900:0upti.meI'm using hashedPasswordFile = config.age.secrets.password.path; is that not right | 19:00:24 | |
| oh I guess you mean for a totally unencrypted hash. | 19:17:52 | |
| encrypting a hash feels a bit redundant 🤔 | 19:35:05 | |
In reply to @hexa:lossy.networkworried about future attacks against the hash. but i can put it in my private flake only and its prob fine | 20:00:38 | |
| if they build on the same primitive then that's not much help | 20:06:09 | |
| though age supports pq things since very recently | 20:06:25 | |
In reply to @hexa:lossy.networkissue is my config is public | 20:36:32 | |
| but thats resolvable | 20:37:33 | |
| 1 Jan 2026 | ||
| 21:01:40 | ||
| 2 Jan 2026 | ||
| 14:57:52 | ||
| 3 Jan 2026 | ||
| Hi, I tried agenix together with nix-generate for proxmox images and I still need to do one rebuild-switch after deploying the resulting images to have the secret mount present. Is there a trick to have them available on first boot? | 08:12:47 | |
| * Hi, I tried agenix together with nix-generate for proxmox images and I still need to do one rebuild-switch after deploying the resulting image to have the secret mount present. Is there a trick to have them available on first boot? | 08:12:58 | |
In reply to @Findus:stratum0.orgI've run into the same issue (not proxmox but generating qcow2). I couldn't find a workaround | 13:42:23 | |
| 4 Jan 2026 | ||
| 10:59:43 | ||
| 8 Jan 2026 | ||
| 23:50:06 | ||