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/accountservice: Don't restart account-daemon on upgrades #45936
Conversation
@@ -11,6 +11,7 @@ with lib; | |||
options = { | |||
|
|||
services.accounts-daemon = { | |||
restartIfChanged = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this breaks eval because it belongs in the implementation (config below), not the options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've copy-pasted it wrong from my systems nixpkgs. Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is applicable here, but many other modules use reloadIfChanged = true
instead to have the service reload its config without restarting it. Might be worth a try.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested that, and it gave errors because this service didn't like to be reloaded.
If account-daemon restarts in a gnome3 session it totally breaks and becomes unusable.
82e37d2
to
c950a88
Compare
Hmm, this fix that I got in my private config doesn't seem to resolve these crashes anymore... Not sure why... |
Having "systemd.services.accounts-daemon.restartIfChanged = false" in configuration.nix solves the issue for me, so this seems valid... |
Motivation for this change
If account-daemon restarts in a gnome3 session it totally breaks and becomes unusable.
What happens for me if account-daemon restarts is that I see the screen flash like the login animation from gdm. All programs are still up. But the mouse is frozen and I can't even switch to a tty with my keyboard. The only thing that it actually responds to seems to be Ctrl+Alt+Delete which triggers a reboot. And this indicates that I'm actually in a tty but I see an image of my gnome-session.
This is a problem when doing
nixos-rebuild switch
etc.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)cc @jtojnar