!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

588 Members
NixOS ❤️ systemd164 Servers

Load older messages


SenderMessageTime
6 Jan 2025
@k900:0upti.meK900What's your actual end goal?16:41:53
7 Jan 2025
@sss:matrix.dark-alexandr.netsss 09:05:10
@sss:matrix.dark-alexandr.netsss changed their profile picture.09:06:22
@anton:gersthof.com@anton:gersthof.com changed their display name from Anton (📞4252) to Anton.12:34:30
@sigmasquadron:matrix.orgSigmaSquadron changed their display name from SigmaSquadron to SigmaSquadron (Away until 2024-01-12).19:36:02
@antifuchs:asf.computerantifuchssad update on that "do not stop / start udevd/networkd on config switches" saga: seems the daemons do get stopped and started, instead of restarted. That's probably due to something else that stc detects, in addition to that socket activation stuff23:24:16
@arianvp:matrix.orgArianStop start is the default for everything in nixos23:43:41
@arianvp:matrix.orgArianRestart is opt in23:43:44
@arianvp:matrix.orgArianYou need to set StopIfChanged = false to enable restarts 23:44:11
8 Jan 2025
@antifuchs:asf.computerantifuchsHmm, solid lead. Thanks02:46:02
@antifuchs:asf.computerantifuchs ah, huh, systemd.services.systemd-udevd.restartIfChanged is true 02:57:22
@antifuchs:asf.computerantifuchs ...but so is systemd.services.systemd-udevd.stopIfChanged 03:22:35
@elvishjerricco:matrix.org@elvishjerricco:matrix.org antifuchs: The default for both of those is true. 03:40:38
@elvishjerricco:matrix.org@elvishjerricco:matrix.org restartIfChanged = false just means that it won't be stopped / started at all. i.e. It will just be left running from the old configuration 03:41:04
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgso it's true by default03:41:16
@elvishjerricco:matrix.org@elvishjerricco:matrix.org and stopIfChanged means that when restartIfChanged happens, it does so by a stop then a start 03:41:32
@arianvp:matrix.orgArianAlso see https://github.com/NixOS/nixpkgs/issues/4952809:32:15
@antifuchs:asf.computerantifuchs
In reply to @elvishjerricco:matrix.org
and stopIfChanged means that when restartIfChanged happens, it does so by a stop then a start
Right, so I think we need to set stopIfChanged to false on those foundational units too, udevd, networkd, maybe others too
12:14:59
@arianvp:matrix.orgArianYep makes sense. In my opinion anything that doesn't have an ExecStop should just be able to use restarts iirc12:18:45
@elvishjerricco:matrix.org@elvishjerricco:matrix.org
In reply to @arianvp:matrix.org
Yep makes sense. In my opinion anything that doesn't have an ExecStop should just be able to use restarts iirc
Oh that's a good idea
15:38:45
@msanft:matrix.org@msanft:matrix.orgDoes anyone of you want to take a look at this? https://github.com/NixOS/nixpkgs/pull/36454416:02:49
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Moritz Sanft: Would it be plausible to make the documentation not depend on perl instead? 16:21:35
@sandro:supersandro.deSandro 🐧posted a link in the thread to where I think it is coming from16:40:02
@antifuchs:asf.computerantifuchsI keep forgetting, should changes touching stuff in nixos/lib apply nixfmt-rfc-style, or no?17:31:15
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI'm pretty sure the rule of thumb, since the treewide reformat, is "if the file is already formatted, keep it formatted, otherwise, you don't have to worry about it"17:32:24
@elvishjerricco:matrix.org@elvishjerricco:matrix.org if it's unformatted and you'd like to format, then please format the whole file in a separate commit 17:33:09
@antifuchs:asf.computerantifuchshaha, makes sense. The systemd-unit-opitons.nix file definitely doesn't look better post-format, so I will abstain17:36:02
@elvishjerricco:matrix.org@elvishjerricco:matrix.org antifuchs: the advice I've gotten for files that look awful post-formatting was "it's not the formatter's fault, just structure the code better so the formatting is better" 17:36:49
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwhich infuriates me17:36:51
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbut it's the best we've got17:36:55

Show newer messages


Back to Room ListRoom Version: 6