!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

579 Members
NixOS ❤️ systemd159 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
20 Mar 2025
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Moritz Sanft: That's kinda what I thought but... I think that might be wrong? Seems like sysctl is for /proc/sys, not /sys, and apparently those are meaningfully different? 08:32:58
@msanft:matrix.org@msanft:matrix.org Just learned that too. But it kind of makes sense. You don't find e.g. device info in /proc/sys, while you do in /sys 08:52:08
@rvdp:infosec.exchangeRamses 🇵🇸Yeah, a lot of drivers expose things under /sys/class where you can write to files to configure stuff09:25:15
@rvdp:infosec.exchangeRamses 🇵🇸A lot of those things are only present when the device has been loaded though, so I feel that we'd need something more dynamic than a single systemd-tmpfiles invocation. I use path units myself to trigger writing to such files when they appear09:26:19
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthat sounds more like a udev thing then, doesn't it?09:26:41
@rvdp:infosec.exchangeRamses 🇵🇸Yeah, that would also work, I guess09:27:03
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgi.e. make udev rules that identify the devices and set the desired property09:27:06
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthough that obviously doesn't work in the example in the PR, which is about transparent_hugepage09:27:27
@rvdp:infosec.exchangeRamses 🇵🇸Yeah, those are exposed by the kernel and always available, I think09:44:18
@sandro:supersandro.deSandro 🐧
In reply to @elvishjerricco:matrix.org
Ok, I'm happier with this now: https://github.com/NixOS/nixpkgs/pull/375975
That sounds cool
09:57:25
@arianvp:matrix.orgArianThis feels like the kind of thing that should be done with udev rules or device units not tmpfiles 10:00:22
@arianvp:matrix.orgArianNot sure10:02:19
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthe sysfs thing? That only works for sysfs nodes that actually represent devices, which is only a subset of sysfs10:14:27
@arianvp:matrix.orgArianAh10:18:47

Show newer messages


Back to Room ListRoom Version: 6