`snowfallorg.users.*.admin` exists on NixOS but doesn't exist on Mac
Nobody has claimed this yet.
- Dominant language
- Nix
- Stars
- 628
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Description
Current situation
The option snowfallorg.users.*.admin exists on NixOS
But doesn't exist on Mac
https://github.com/snowfallorg/lib/blob/02d941739f98a09e81f3d2d9b3ab08918958beac/modules/darwin/user/default.nix#L43
Problem
This makes more difficult to reuse the same config across machines
Expected
I would like to have an option on both OS
Fallback
If admin option is not doable on Mac, i would prefer this option exists :
- noop : does nothing whatever given value
- assert : warn and explain the situation to the user that the value should be
false
I can do a PR if you need with your preferred solution
Current workaround
snowfallorg = lib.mkIf pkgs.stdenv.hostPlatform.isLinux {
users.pinage404.admin = true;
};
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare the user option definitions in modules/nixos/user/default.nix and modules/darwin/user/default.nix, starting with how the NixOS admin option is declared. Determine whether Darwin can support the same option or needs the proposed noop or assertion behavior. Done means shared configuration can set snowfallorg.users.*.admin on both platforms with behavior that is explicit and consistent.
Written by the indexing model from the issue text.
Assessment
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100