NixOS Deployments | 1187 Members | |
| NixOS Deployment tooling | 282 Servers |
| Sender | Message | Time |
|---|---|---|
| 8 Apr 2025 | ||
| 11:24:05 | ||
| Thank you for your followup Robert Hensing (roberth)!
I think prompts could actually be completed with both/either NixOps4 resources data and/or user input.
@lassulus:lassul.us, made a separate repo, it's a good playground, and we gotta fix the test…
While I haven't used Terraform extensively, I feel like I have a good grasp over it. I think the CRUD operations on some secrets storage backend already maps well to the Nixops4 model. The secret generation with the prompts, their outputs going into the script that generate the secrets, seems to be the tricky part, is that why you mentioned focus?
It is a little expensive, I know the clan team has been trying to bring the cost down, and do some caching. I am not sure I understand how modular services would reduce evaluation time? Would it help avoid loading the entire NixOS module library, which I currently understand is one of the main issues regarding NixOS configurations eval times (and RAM usage)? | 17:50:57 | |
Loading all the services is a fairly significant portion of NixOS evaluation. Each file, a bunch of options and each config = mkIf cfg.enable has to be evaluated, at least. | 18:08:34 | |
Ok, so it's not just all of the imports phase? | 18:10:23 | |
Seems safe to assume the list hasn't shrunk in the past 3.5 years :) | 18:18:07 | |
| I assumed vars generation would run on the host, being part of the config. Is this representative or accidentally wonky? https://github.com/Lassulus/vars/blob/066dbc738838b79be6bc80b88559cb88e0fffffd/testing.nix#L75 | 18:25:40 | |
| fwiw this way the test can't run on a darwin VM host, but that's probably besides the point | 18:27:50 | |
| It's one representation, e.g. in clan vars generation is done from on the developer machine, ahead of deploying to a nixos host. | 18:27:52 | |
| * It's one representation, e.g. in clan vars generation is done on the developer machine, ahead of deploying to a nixos host. | 18:28:43 | |
| Like the vars definitions get evaluated, the result is exported, something does the prompting, and interacts with some secrets backend, then that something uploads some result/generated vars to the nixos host, or a key to decrypt them (if the result/generated vars are uploaded through the nix store), to the nixos host, and finally when you get to nixos-rebuild switch on your nixos host, your secrets get "activated" by something else that matches how something laid out the result/generated vars. | 18:34:43 | |
| hope that helps 🥵 | 18:35:25 | |
| My effort here, is to figure out how the vars interfaces could be used in different systems: clan, nixops4, …, in order to help the vars PR progress, and figure out where things intersect and overlap, to see if some of the work can be shared across different systems. | 18:42:38 | |
| 23:03:07 | ||
| 9 Apr 2025 | ||
| 12:59:37 | ||
| 15:45:56 | ||
| 10 Apr 2025 | ||
| 14:44:23 | ||
| 11 Apr 2025 | ||
| 22:44:40 | ||
| 12 Apr 2025 | ||
| 02:00:37 | ||
| 02:17:31 | ||
| 11:21:17 | ||
| 12:10:56 | ||
| 12:11:10 | ||
| 12:13:28 | ||
| 12:55:55 | ||
| 13 Apr 2025 | ||
| 08:20:01 | ||
| 08:25:20 | ||
| 08:26:43 | ||
| 08:26:52 | ||
| 15:09:10 | ||
| 20:14:03 | ||