Conversation
|
I think that the description "whether to enable |
|
@Ma27 I understand but I would not reason on the name of the option there because this is no longer done for Moreover, I would stick to the This other name can be found in To be truly option-name and option-intent agnostic we could have a |
|
Maybe we should just encourage people to use |
|
@infinisil, this example may indeed be a case where nixpkgs/nixos/modules/services/networking/ssh/sshd.nix Lines 161 to 163 in 1f19197 |
@xaverdh That's a possibility, though it does not set |
This is totally out of scope here, however I should note that
Is the
True, but all examples you mentioned can be used as equivalent to |
|
I've been thinking of adding this for a while. Which isn't much of an endorsement but more of an "I've also come up with this was too lazy to do it". My (troll) name for it would have been |
|
Thanks @ajs124, your |
|
A lighter implementation might be |
|
I think introducing such a function doesn't add much benefit, since as previously stated, the same can be achieved with Overall, I'm rather opposed to this change. |
|
@infinisil Oh right, I haven't thought about the possible confusion, this is unfortunate. Concerning the other arguments I would only repeat #94983 (comment). This said, by following the suggestion made to me to span out this PR from #101071 and an old version of #94917, where |
Motivation for this change
Some
enable*options are better with atruedefault, but there is only amkEnableOptionin the lib.Eg.
openFirewallin #94917Things done
mkEnabledOptioninlib/options.nix.sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)