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

NixOS module: Optionally make systemd group for multiple config services #533

Merged
merged 1 commit into from
May 7, 2022

Conversation

rskew
Copy link
Contributor

@rskew rskew commented May 3, 2022

I wanted to switch off the service for my bluetooth keyboard when it's disconnected, but when the services are grouped they all shut down.

This change optionally stops the service group being created, allowing them to be started/stopped individually.

Comment on lines 66 to 67
# If only one config file is supplied, unify all kmonad units under a target
make-group = (length cfg.configfiles + length cfg.optionalconfigs) > 1;
make-group = cfg.make-group && (length cfg.configfiles + length cfg.optionalconfigs) > 1;

This comment was marked as resolved.

Copy link
Contributor Author

@rskew rskew May 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good pickup! I'm pretty sure it's the comment that's wrong, as it doesn't make sense to make a group if there's only a single service.
I've updated the comment so it's consistent with what the code does (and used to do).

@slotThe slotThe merged commit c43a018 into kmonad:master May 7, 2022
@slotThe
Copy link
Member

slotThe commented May 7, 2022

Looks reasonable to me; thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants