!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

624 Members
NixOS ❤️ systemd170 Servers

Load older messages


SenderMessageTime
8 Jan 2025
@elvishjerricco:matrix.orgElvishJerricco antifuchs: The default for both of those is true. 03:40:38
@elvishjerricco:matrix.orgElvishJerricco 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.orgElvishJerriccoso it's true by default03:41:16
@elvishjerricco:matrix.orgElvishJerricco 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.orgElvishJerricco
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.orgElvishJerricco 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.orgElvishJerriccoI'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.orgElvishJerricco 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.orgElvishJerricco 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.orgElvishJerriccowhich infuriates me17:36:51
@elvishjerricco:matrix.orgElvishJerriccobut it's the best we've got17:36:55
@antifuchs:asf.computerantifuchslol, yeah17:37:00
@antifuchs:asf.computerantifuchs HELL YES, this functional composition of options thing totally rules. think I have a change that defaults stopIfChanged to false unless ExecStop / ExecStopPost is set 17:45:18
@antifuchs:asf.computerantifuchsfiled https://github.com/NixOS/nixpkgs/pull/372191, I think this probably needs docs?17:49:43
@elvishjerricco:matrix.orgElvishJerricco antifuchs: that's iffy 17:54:06
@elvishjerricco:matrix.orgElvishJerricco because of systemd.packages 17:54:12
@elvishjerricco:matrix.orgElvishJerricco units can easily have an ExecStop that can't be known about at eval-tiem 17:54:30
@elvishjerricco:matrix.orgElvishJerricco * units can easily have an ExecStop that can't be known about at eval-time 17:54:32
@elvishjerricco:matrix.orgElvishJerriccothis would have to be an stc-level change17:54:46
@antifuchs:asf.computerantifuchsahhhhhh17:54:55
@antifuchs:asf.computerantifuchsok, so probably better to explicitly set the stopIfChanged flag for the units I care about now & then see about modding stc17:55:34
@elvishjerricco:matrix.orgElvishJerriccoI think so, yes17:56:03
@antifuchs:asf.computerantifuchsheeeere we go on pt1 of this: https://github.com/NixOS/nixpkgs/pull/37219618:09:34

Show newer messages


Back to Room ListRoom Version: 6