agenix | 365 Members | |
| age-encrypted secrets for NixOS https://github.com/ryantm/agenix/ | 96 Servers |
| Sender | Message | Time |
|---|---|---|
| 17 Apr 2025 | ||
| 17:17:41 | ||
| 18 Apr 2025 | ||
| 16:20:15 | ||
| Hello, heres a simple question that I've had a hard time finding an answer to: is there a way to have a subfolder within I prefer subfoldering-- | 16:22:34 | |
In reply to @saik3617:matrix.orgYes, just create it and use it | 16:32:18 | |
| @Saik https://git.fricloud.dk/fricloud/server-configs/src/branch/main/secrets/secrets.nix#L20 | 16:33:01 | |
| And then I use it like this https://git.fricloud.dk/fricloud/server-configs/src/branch/main/secrets/default.nix#L6 | 16:33:27 | |
| You can see all the secrets in that folder as well. | 16:33:48 | |
| Thanks! | 17:08:32 | |
| Additionally, is there a way to modularize an environment file? Something like
| 17:17:16 | |
| I'll try to take a look once I'm at my PC again. Hard to see code formatting on the phone :) | 17:47:05 | |
| I guess in theory you could MAKE something that does that, but I don't think it's currently possible. I want that as well for some of the things I have.. Because I specify them in a .env file, to make it work for the given application, but at the same time, I have a single file for specifying it elsewere. My usecase is e.g. creating a LDAP user which allows a given user to send emails, and then using that LDAP user in a given service to send welcome emails. | 18:13:54 | |
| It could actually be fun to implement, but right now, sorry to disappoint Saik , I don't think it's possible. Or at least, not easily | 18:14:47 | |
| I have a sneaking suspicion that I did something akin to this, but not really in any good way, that makes any sense to use. | 18:15:08 | |
| 20 Apr 2025 | ||
| 02:42:04 | ||
| 04:04:14 | ||
| 13:10:52 | ||
| 21 Apr 2025 | ||
| 14:20:45 | ||
| 17:48:30 | ||
| 17:56:11 | ||
| 17:56:44 | ||
| 24 Apr 2025 | ||
| @ryantm can I get a merge on https://github.com/ryantm/agenix/pull/324 | 12:05:22 | |
| OK took a bit of bashing | 12:22:13 | |
| But it should be fine now | 12:22:16 | |
| 18:24:27 | ||
| 19:01:37 | ||
| hello, where do i create the secrets folder? | 19:54:51 | |
| 25 Apr 2025 | ||
Hello everyone, I just tried to create a secret where the filename starts with a dash (-) for reasons, but that unfortunately doesn't work. The relevant error message is basename: invalid option -- 'd'. Is there a known workaround? | 20:19:14 | |
In reply to @mynacol:mynacol.xyzMaking a file without a dash at the start! /s - But most likely its something that should be fixed in the code/module. It shouldn't treat filenames with dashes at the start like arguments. Can you create an issue for it? | 21:07:44 | |
| I actually got to the bottom of it: https://github.com/ryantm/agenix/issues/325 | 21:25:56 | |
I think most of these places should just have e.g. basename -- "$FILE" instead, and it would be solved. Still no clue why you want files to begin with a dash :p | 21:27:44 | |