-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
Current situation
The option snowfallorg.users.*.admin exists on NixOS
lib/modules/nixos/user/default.nix
Line 58 in 02d9417
| admin = mkOption { |
But doesn't exist on Mac
lib/modules/darwin/user/default.nix
Line 43 in 02d9417
| options = { |
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;
};sokai
Metadata
Metadata
Assignees
Labels
No labels