Valentin Gagarin fricklerhandwerk
  • Hamburg, Germany
  • Nix documentarian, information janitor

  • Joined on 2024-06-12
fricklerhandwerk commented on pull request fediversity/fediversity#481 2025-07-30 13:48:22 +02:00
Complete the data model with a runtime environment and end-to-end test

i don't think it's clunkier. after letting it rest for a couple of days I actually was surprised why the field is not of type optionType, because why can a function not be str -> str?

fricklerhandwerk commented on pull request fediversity/fediversity#481 2025-07-30 13:46:16 +02:00
Complete the data model with a runtime environment and end-to-end test

the deployment method is decidedly not hard-coded here at all. the environment owner specifies that by providing an implementation, where they can use any provider just the way they want.…

fricklerhandwerk commented on pull request fediversity/fediversity#481 2025-07-30 13:42:08 +02:00
Complete the data model with a runtime environment and end-to-end test

transposing may be slightly easier on the eyes in the two places where we iterate over resources. not sure, it's just a thought we can ignore until it starts hurting. at the moment we don't have…

fricklerhandwerk commented on pull request fediversity/fediversity#481 2025-07-30 13:40:38 +02:00
Complete the data model with a runtime environment and end-to-end test

I don't think it makes a difference here, except more braces?

fricklerhandwerk commented on pull request fediversity/fediversity#481 2025-07-30 13:39:26 +02:00
Complete the data model with a runtime environment and end-to-end test

oh yes, good point

fricklerhandwerk commented on pull request fediversity/fediversity#481 2025-07-30 13:39:06 +02:00
Complete the data model with a runtime environment and end-to-end test

no, mkDeployment is simply required to at least get something out of the deployment's module expression. looking inside is not very helpful though, as you see from the test. it has a bunch of…

fricklerhandwerk commented on pull request fediversity/fediversity#481 2025-07-30 13:37:40 +02:00
Complete the data model with a runtime environment and end-to-end test

in this example, the "single NixOS VM" environment has a shell as a resource.

divergent thought: if we could deploy single users to NixOS VMs (why not, in principle), a shell could play the…

fricklerhandwerk commented on pull request fediversity/fediversity#481 2025-07-30 13:35:30 +02:00
Complete the data model with a runtime environment and end-to-end test

why would it take multiple inputs? here in the test we only touch it in order to do some granular analysis of intermediate steps. in practice this is not part of the public interface. each…

fricklerhandwerk commented on pull request fediversity/fediversity#481 2025-07-30 13:32:24 +02:00
Complete the data model with a runtime environment and end-to-end test

it sure is clunky, but that's what we have to ensure type safety. we don't strictly require it, we may as well reduce implementation to functionTo output-type, but it makes things more…

fricklerhandwerk commented on pull request fediversity/fediversity#481 2025-07-30 13:28:38 +02:00
Complete the data model with a runtime environment and end-to-end test

oh yeah, maybe it should also say "as far as it is currently encoded".

fricklerhandwerk commented on pull request fediversity/fediversity#481 2025-07-30 13:27:46 +02:00
Complete the data model with a runtime environment and end-to-end test

the purpose of this PR is exactly to show a minimal example that one can still understand in limited time. in practice you will probably want a resource of the size and complexity of an entire…

fricklerhandwerk commented on pull request fediversity/fediversity#484 2025-07-30 13:24:46 +02:00
WIP: Fix and test proxmox-*.sh scripts

Because that's how one tends to wrap Bash scripts with Nix. What I mean is more like: We have an executable here. Wrap that executable in a derivation and do everything in there. Then whatever…

fricklerhandwerk commented on pull request fediversity/fediversity#478 2025-07-30 13:20:08 +02:00
Fix infra and add more tests

But why didn't we move the derivations to build as checks in to checks? Then the change to the YAML could have been roughly nix flake check.

fricklerhandwerk commented on pull request fediversity/fediversity#485 2025-07-30 13:15:42 +02:00
Infra: get rid of makeResourceModule

If you want to be extra clever, you can do name = builtins.baseNameOf ./.;

fricklerhandwerk commented on pull request fediversity/fediversity#485 2025-07-30 13:13:56 +02:00
Infra: get rid of makeResourceModule

We may as well have a module that sets _module.args, the additional imports and imports ./common/resource.nix, because that is what all of these share. The extra split into *Injector doesn't make it more obvious what's happening.

fricklerhandwerk commented on pull request fediversity/fediversity#484 2025-07-30 13:09:52 +02:00
WIP: Fix and test proxmox-*.sh scripts

I mean, this is a NixOps4 proxmox provider in disguise, just turned inside out, right?

fricklerhandwerk commented on pull request fediversity/fediversity#484 2025-07-30 13:08:50 +02:00
WIP: Fix and test proxmox-*.sh scripts

Hm, I'm generally rather confused why we call a bash script through nix-shell --run rather than building a script with writeShellApplication and run that after building it with Nix. Too late to complain now, but still, why actually?

fricklerhandwerk created pull request fediversity/fediversity#481 2025-07-29 17:23:57 +02:00
Complete the data model with a runtime environment and end-to-end test
1063be8c16 add explanatory comment