modular-services: add user creation/spec support #1
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 376 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.355
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1"
general
weight: 0.35
roberth
<!--
^ Please summarise the changes you have done and explain why they are necessary here ^
For package updates please link to a changelog or describe changes, this helps your fellow maintainers discover breaking updates.
For new packages please briefly describe the package or provide a link to its homepage.
-->
This pull request adds user creation/specification support to modular services! This allows you to introduce services built with specific users, userid, group and group id and adds further support for future API's such as
runtimeDirectory,cacheDirectorystateDirectory,logDirectoryin future.Things done
<!--
Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers.
However, please do not remove the template, even when nothing is checked!
-->
- [ ] x86_64-linux
- [ ] aarch64-linux
- [x] aarch64-darwin
- [ ] Basic functionality of all binary files, usually in
./result/bin/.- [ ] Ran
nixpkgs-reviewon this PR. See [nixpkgs-review usage].- [ ] [Package tests] at
passthru.tests.- [x] [NixOS tests] in [nixos/tests].
- [x] Tests in [lib/tests] or [pkgs/test] for functions and "core" functionality.
- [ ] Package update: when the change is major or breaking.
- [ ] Module addition: when adding a new NixOS module.
- [ ] Module update: when the change is significant.
- [x] simple, no users
- [ ] services with same-user constraints but no names or ids. Names can be derived from the service attribute path. Ids use existing solutions like NixOS id-less users (mutable-users or otherwise).
- [ ] services with user names
- [x] services with all information pinned down
- [x] services with ids pinned down but not using default names
[Package tests]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests
[NixOS tests]: https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests
[nixpkgs-review usage]: https://github.com/Mic92/nixpkgs-review#usage
[CONTRIBUTING.md]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md
[automation/AI policy]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#automationai-policy
[lib/tests]: https://github.com/NixOS/nixpkgs/blob/master/lib/tests
[maintainers/README.md]: https://github.com/NixOS/nixpkgs/blob/master/maintainers/README.md
[nixos/tests]: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests
[pkgs/README.md]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md
[pkgs/test]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/test