!XLCFfvFhUkYwOMLbVx:nixos.org

agenix

369 Members
age-encrypted secrets for NixOS https://github.com/ryantm/agenix/96 Servers

Load older messages


SenderMessageTime
31 Dec 2025
@ed209a:matrix.orged209
In reply to @andromeda:tchncs.de
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.

why not just

age.identityPaths = [
    "/persist/etc/ssh/ssh_host_ed25519_key"
]

full disclosure i haven't yet tried this

17:01:08
@odilf:matrix.orgodilf joined the room.18:15:00
@ed209a:matrix.orged209okay, i just did this and it does work!18:27:02
@ed209a:matrix.orged209 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
@k900:0upti.meK900 You probably want to just use hashedPassword 18:37:48
@ed209a:matrix.orged209
In reply to @k900:0upti.me
You probably want to just use hashedPassword
I'm using hashedPasswordFile = config.age.secrets.password.path; is that not right
19:00:24
@ed209a:matrix.orged209 oh I guess you mean for a totally unencrypted hash. 19:17:52
@hexa:lossy.networkhexaencrypting a hash feels a bit redundant 🤔19:35:05
@ed209a:matrix.orged209
In reply to @hexa:lossy.network
encrypting a hash feels a bit redundant 🤔
worried about future attacks against the hash. but i can put it in my private flake only and its prob fine
20:00:38
@hexa:lossy.networkhexaif they build on the same primitive then that's not much help20:06:09
@hexa:lossy.networkhexathough age supports pq things since very recently20:06:25
@ed209a:matrix.orged209
In reply to @hexa:lossy.network
if they build on the same primitive then that's not much help
issue is my config is public
20:36:32
@ed209a:matrix.orged209but thats resolvable20:37:33
1 Jan 2026
@debtquity:matrix.orgdebtquity joined the room.21:01:40
2 Jan 2026
@Findus:stratum0.orgfindus joined the room.14:57:52
3 Jan 2026
@Findus:stratum0.orgfindusHi, 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
@Findus:stratum0.orgfindus* 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
@ed209a:matrix.orged209
In reply to @Findus:stratum0.org
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?
I've run into the same issue (not proxmox but generating qcow2). I couldn't find a workaround
13:42:23
4 Jan 2026
@jappie:jappie.devjappie changed their display name from jasper to jappie.10:59:43
8 Jan 2026
@pltrz_:matrix.orgpltrz set a profile picture.23:50:06
9 Jan 2026
@pltrz_:matrix.orgpltrz changed their profile picture.00:00:37
@ivy:fargone.shIvy joined the room.05:43:24
@ivy:fargone.shIvyi think ive implemented restarting units like sops-nix?08:02:47
@ivy:fargone.shIvyis that something people would want?08:02:56
@ivy:fargone.shIvyi have it working on darwin08:03:03
@Findus:stratum0.orgfindusI've read the source code a little and it seems like agenix also uses systemd to mount the secrets partition when sysusers are enabled (https://mynixos.com/nixpkgs/option/systemd.sysusers.enable), but when enabling that every user defined in the nix config must be a system user, dad did not work out for me08:50:17
@Findus:stratum0.orgfindushttps://github.com/ryantm/agenix/blob/fcdea223397448d35d9b31f798479227e80183f6/modules/age.nix#L28308:52:02
@whispers:catgirl.cloudwhispers [& it/fae]for what it's worth, it also uses the systemd service if userborn is used, which can handle both normal and system users12:59:21
@ivy:fargone.shIvyhow do you use agenix rekey over like ssh13:18:55
@ivy:fargone.shIvylike how can i do that "sanely"13:19:01

Show newer messages


Back to Room ListRoom Version: 6