-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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/nix-daemon: Ensure continued availability of daemon socket #161059
nixos/nix-daemon: Ensure continued availability of daemon socket #161059
Conversation
As `nix-daemon.service` does not make use of `ExecStop`, we prefer to keep the socket up and available. This is important for machines that run Nix-based services, such as automated build, test, and deploy services, that expect the daemon socket to be available at all times. See committed inline comment for further explanation.
@ofborg test switchTest installer.simple |
Hmm I was under the assumption that the |
@arianvp No, |
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 good. I'll merge this in a few days when nobody has any strong point why I shouldn't
Successfully created backport PR #163323 for |
Motivation for this change
This fixes the error messages
and
in nix programs that are active during a NixOS switch.
As
nix-daemon.service
does not make use ofExecStop
, we prefer to keep the socket up and available. This is important for machines that run Nix-based services, such as automated build, test, and deploy services, that expect the daemon socket to be available at all times.See committed inline comment for further explanation.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notescc @tomberek @dasJ