WIP: data model: type nixos module #8

Closed
kiara wants to merge 1 commit from data-model-type-nixos-module into deployment-data-model-with-tests
Contributor

this explicitly types our resource-type as a NixOS module, resolving the TODO comment there.

however, so far this errors with:

       error: attribute 'operator' missing
       at /home/kiara/code/Fediversity/deployment/data-model-test.nix:178:24:
          177|           let
          178|             operator = (environment.apply resources).operator;
             |                        ^
          179|           in

now, given this definition, that complaint seems arguably correct at the type level:

                      apply =
                        ...
                        lib.optionalAttrs (validRequests != { }) {
                          ${config.username} = {
                            ...
                          };
                        };

ideas on addressing this welcome...

this explicitly types our `resource-type` as a NixOS module, resolving the TODO comment there. however, so far this errors with: ``` error: attribute 'operator' missing at /home/kiara/code/Fediversity/deployment/data-model-test.nix:178:24: 177| let 178| operator = (environment.apply resources).operator; | ^ 179| in ``` now, given this definition, that complaint seems arguably correct _at the type level_: ``` apply = ... lib.optionalAttrs (validRequests != { }) { ${config.username} = { ... }; }; ``` ideas on addressing this welcome...
kiara added 1 commit 2025-07-31 18:55:57 +02:00
kiara closed this pull request 2025-08-27 00:46:01 +02:00
Author
Contributor
superseded by https://git.fediversity.eu/Fediversity/Fediversity/pulls/497

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: fricklerhandwerk/Fediversity#8
No description provided.