You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So by the looks of it, the permissions agenix has are very specific, but I haven't seen it documented anywhere clearly and definitively.
As far as my testing goes, because of the error you'd be tempted to normally try running as sudo user but this is actually not the intended way to do it.
For my setup I have the following: etc/nixos/secrets containing:
secrets.nix:
Note: You might have to comment out the line with example.age when building for the first time.
letusername="age1..."
in
{"example1.age".publicKeys=[username];
...
}
example1.age
example2.age
...
In terms of the permissions I've set the entire secrets directory as 775, owned by root, with a custom user group for managing it (but the default "users" is sufficient).
This will allow anyone to read all files within it, and execute on them, and only root and the user group can edit them (add new secrets, edit them, etc)
Issue
It seems like there is an issue with how agenix might be retrieving the
$EDITOR
variable as superuser.Line 162 seems to be referring to the following line of code:
Terminal
The text was updated successfully, but these errors were encountered: