nerdctl: enable darwin and fix default data-root permission issue#508463
Draft
66Ton99 wants to merge 3 commits intoNixOS:masterfrom
Draft
nerdctl: enable darwin and fix default data-root permission issue#50846366Ton99 wants to merge 3 commits intoNixOS:masterfrom
66Ton99 wants to merge 3 commits intoNixOS:masterfrom
Conversation
Author
|
Related upstream/downstream work:
Once the upstream nerdctl change lands and is released, this nixpkgs change can be simplified accordingly. |
This was referenced Apr 9, 2026
c0bc892 to
3e99ba1
Compare
3e99ba1 to
1d271e0
Compare
Not really useful until we can have a functional runtime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This updates
pkgs/by-name/ne/nerdctl/package.nixto makenerdctlusable on Darwin.Changes
meta.platformscni-pluginsis optionalCNI_PATHwrapper env is set only on Linuxnerdctlfails with:mkdir /var/lib/nerdctl: permission denied$HOME/.local/share/nerdctl/var/lib/nerdctlif home cannot be resolvedWhy
nerdctlcurrently evaluates/builds as Linux-only and on Darwin defaults to/var/lib/nerdctl, which is not writable for regular users and causes immediate fatal startup.Result
On Darwin,
nerdctlcan be installed and started as a normal user without requiring root-writable/var/lib.Testing
Tested on
x86_64-darwin:nix build ...#nerdctlsucceedsnerdctl --versionsucceedsnerdctlno longer fails with/var/lib/nerdctl: permission deniedLinux behavior is unchanged (Linux-only CNI wiring remains Linux-only).
Review request
I would appreciate review from someone who is familiar with both
nerdctlinternals andnixpkgspackaging conventions, especially around Darwin defaults and runtime data-root behavior.