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: set stopIfChanged to false #2105

Merged
merged 1 commit into from
Jun 14, 2021

Conversation

ncfavier
Copy link
Member

Description

Sets systemd.services.home-manager-${user}.stopIfChanged to false in the NixOS module. The service has no ExecStop, so I don't think there's a point in stopping it in the old configuration and starting it in the new, we can just restart it.

One more line of code for one less line of logs seems like a good deal to me.

Checklist

  • Change is backwards compatible.

  • Code formatted with ./format.

  • Code tested through nix-shell --pure tests -A run.all.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

There is no ExecStop so we can just restart the service.
@ncfavier ncfavier requested a review from rycee as a code owner June 14, 2021 07:50
@kalbasit kalbasit merged commit 4ed6705 into nix-community:master Jun 14, 2021
@ncfavier ncfavier deleted the nixos-no-stop branch June 14, 2021 17:50
rycee pushed a commit that referenced this pull request Jun 20, 2021
There is no ExecStop so we can just restart the service.

(cherry picked from commit 4ed6705)
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.

2 participants