Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treewide: add bool type to enable options, or make use of mkEnableOption #85628

Merged
merged 1 commit into from Apr 21, 2020

Conversation

xaverdh
Copy link
Contributor

@xaverdh xaverdh commented Apr 20, 2020

Motivation for this change

When trying out the nixos-manager graphical user interface for nixos, I noticed that lots of services had enable options without type information, leading to nixos-manager not showing a slider for them.
Fix this by adding missing type information to manually specified enable options or replacing them by mkEnableOption where appropriate (i.e. trivial text with service name and such).

@xaverdh
Copy link
Contributor Author

xaverdh commented Apr 20, 2020

Side note: It would have been useful (for testing this) if the nixos manual / man pages could be build separately (not as part of a system rebuild).

Add missing type information to manually specified enable options or replace them by mkEnableOption where appropriate.
@xaverdh
Copy link
Contributor Author

xaverdh commented Apr 21, 2020

The rebuild-linux tag is no longer applicable, I initially overlooked a case where the default value was true (so it could/should not be switched to mkEnableOption), after fixing this, the tag stayed though. Is there a way to recompute those tags from github ci?

@Mic92 Mic92 merged commit 6d446c1 into NixOS:master Apr 21, 2020
@Mic92
Copy link
Member

Mic92 commented Apr 21, 2020

Thanks!

@Mic92
Copy link
Member

Mic92 commented Apr 21, 2020

Might be worth a backport.

@ajs124
Copy link
Member

ajs124 commented Apr 22, 2020

For reference: #76184

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants