Structuur in relatie tot afnemende partijen #8
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Discussion
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Help Wanted
Status
Need More Info
Prio - Hoog
Prio - Laag
Prio - Middel
styling
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MinBZK/DAWO-NixOS#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As @bram.buijs correctly points out in #6, there are things within DAWO that are mandatory on every device and others that are opt-in.
Therefore, I propose converting the core of DAWO into a Nix Flake similar to https://github.com/thecloudexplorers/nixos-blocks.
DAWO would then serve as an input for workspaces used by organizations such as BZK, Municipalities, or UWV; it would contain all mandatory requirements while providing the space to deviate from default options where needed. This allows DAWO to handle about 80% of the heavy lifting (de-burdening), while individual organizations can still utilize their own branding, (user) profiles, and application sets.
Visually, I see it as follows:
Agreed, this is the right model. Making the DAWO core a flake that downstream workplaces consume as an input, with a clear interface to deviate from the defaults, is exactly what lets it carry the obligations centrally while leaving branding, user profiles and app sets to the organisation.
On the mandatory vs opt-in split from #6, I'd frame the blocks in two tiers:
For the interface the nixos-blocks shape fits well:
dawo.<block>.enableplusdawo.<block>.options.<...>, with the norm and origin per block documented (the provenance table in #7 already does this for the hardening set). A consumer then reads one OPTIONS-style doc to see what is mandatory, what is tunable, and where deviating is allowed.Concretely I can rework the hardening set from #6/#7 into this block shape as a first batch, so we have a working example of the mandatory and opt-in tiers to iterate the structure on. Happy to align on naming first (a
dawo.prefix, or something else).@bram.buijs awesome suggestion! If you have the bandwidth: go for it 😄 ✅.
@Martijn @victor could you create another repo called DAWO-NixOS-BZK? That repo will then only contain the BZK workplace related config and this repo will be upstream block/core.
So for the mandatory blocks I'd suggest declaring options with
lib.mkForceFor the suggested defaults we should use
lib.mkDefaultAnd in Nix language style, we should avoid leaving options empty, or specify a build-time warning when an options is undefined.
@rutger.putter wrote in #8 (comment):
DAWO-NixOS-VNG would also be handy in that case. There we can work on the municipality specific configs
@bram.buijs wrote in #8 (comment):
I assume that will also be a shared blocks repo? So let's pick a name that suggests that.
For your work I'd see
DAWO-NixOSandDAWO-NixOS-VNGto be inputs for something likeDAWO-Gem-Zaanstad.