Repository navigation
Added config options for systemd-coredump functionality. - #6168
Conversation
There was a problem hiding this comment.
Uncomment, we'll merge into staging.
|
IMHO, since coredump support is on by default, we don't need "--enable-coredump". (I think it is impractical to be explicit about all configure flags, so better take advantage of some defaults.) I don't have strong feelings about that flag, but if you split this PR in two commits, one for the nixos options and one for the "--enable-coredump" flag, we can merge the nixos part quicker (no need to go via staging). |
There was a problem hiding this comment.
Is it possible to make this conditional as well in the mkMerge below?
|
So, I tried to rebase this work onto master recently, and most of the config file stuff that used to be in I removed the I also remove the comment suggesting that a reboot would be required, since it appears that changes to the |
Added config options for systemd-coredump functionality.
|
Agree for the separate coredump nix file, I agree less on having it in system/boot. But we can change it at any time. Merging thanks. |
This adds simple support for configuring the management of core dumps through systemd to the NixOS config. I was debugging a systemd service with a segmentation fault when I noticed that /etc/systemd/coredump.conf isn't configurable through NixOS. This feature is helpful as systemd can place core dumps in a central location and rotate them as needed.
I left the default as systemd core dumps disabled, which is the current behavior. Limits still have to be set separately, which I believe is appropriate considering core dumps can be a security risk on sensitive systems.
I would have added the explicit --enable-coredump flag to the systemd configure flags, but decided against it when Nix started rebuilding Chromium etc. Someone might want to un-comment it at a later time.