| 6 Jan 2025 |
K900 | What's your actual end goal? | 16:41:53 |
| 7 Jan 2025 |
| sss | 09:05:10 |
| sss changed their profile picture. | 09:06:22 |
| @anton:gersthof.com changed their display name from Anton (📞4252) to Anton. | 12:34:30 |
| SigmaSquadron changed their display name from SigmaSquadron to SigmaSquadron (Away until 2024-01-12). | 19:36:02 |
antifuchs | sad 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 stuff | 23:24:16 |
Arian | Stop start is the default for everything in nixos | 23:43:41 |
Arian | Restart is opt in | 23:43:44 |
Arian | You need to set StopIfChanged = false to enable restarts | 23:44:11 |
| 8 Jan 2025 |
antifuchs | Hmm, solid lead. Thanks | 02:46:02 |
antifuchs | ah, huh, systemd.services.systemd-udevd.restartIfChanged is true | 02:57:22 |
antifuchs | ...but so is systemd.services.systemd-udevd.stopIfChanged | 03:22:35 |
@elvishjerricco:matrix.org | antifuchs: The default for both of those is true. | 03:40:38 |
@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 | so it's true by default | 03:41:16 |
@elvishjerricco:matrix.org | and stopIfChanged means that when restartIfChanged happens, it does so by a stop then a start | 03:41:32 |
Arian | Also see https://github.com/NixOS/nixpkgs/issues/49528 | 09:32:15 |
antifuchs | 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 |
Arian | Yep makes sense. In my opinion anything that doesn't have an ExecStop should just be able to use restarts iirc | 12:18:45 |
@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 | Does anyone of you want to take a look at this?
https://github.com/NixOS/nixpkgs/pull/364544 | 16:02:49 |
@elvishjerricco:matrix.org | Moritz Sanft: Would it be plausible to make the documentation not depend on perl instead? | 16:21:35 |
Sandro 🐧 | posted a link in the thread to where I think it is coming from | 16:40:02 |
antifuchs | I keep forgetting, should changes touching stuff in nixos/lib apply nixfmt-rfc-style, or no? | 17:31:15 |
@elvishjerricco:matrix.org | I'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 | if it's unformatted and you'd like to format, then please format the whole file in a separate commit | 17:33:09 |
antifuchs | haha, makes sense. The systemd-unit-opitons.nix file definitely doesn't look better post-format, so I will abstain | 17:36:02 |
@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 | which infuriates me | 17:36:51 |
@elvishjerricco:matrix.org | but it's the best we've got | 17:36:55 |