| 17 Mar 2025 |
antifuchs | mainly because I prefer to have a human in the loop knowing that this system was booted (: | 20:03:48 |
antifuchs | (and confirming that it should boot) | 20:03:56 |
| 18 Mar 2025 |
@rosscomputerguy:matrix.org | I heard something changed with QuickAck in networkd that needs to change. Someone told me about it but I don't understand what's not working with it so maybe someone here could fix it? I was told something needs to be duplicated. | 16:53:01 |
@elvishjerricco:matrix.org | Is this a good idea? https://github.com/NixOS/nixpkgs/pull/375975 I've certainly needed it quite a few times. But you wouldn't want people just blindly enabling it because they got an error without understanding it | 21:38:37 |
@adam:robins.wtf | Maybe give a stern warning with it? | 21:39:42 |
@elvishjerricco:matrix.org | adamcstephens: like an actual warnings = ... type warning? Or just in the description? | 21:42:39 |
@adam:robins.wtf | just the description. | 21:43:20 |
@elvishjerricco:matrix.org | I just realized... we ought to give the kernelModules / availableKernelModules options the same treatment as supportedFilesystems | 21:44:37 |
@elvishjerricco:matrix.org | i.e. kernelModules.foo = true; rather than kernelModules = [ "foo" ]; | 21:44:53 |
@elvishjerricco:matrix.org | Then you could properly target the modules you want to exclude with mkForce | 21:45:22 |
@elvishjerricco:matrix.org | I should probably just do that instead of adding this footgun | 21:45:36 |
@elvishjerricco:matrix.org | Hmph that will inevitably lead to some people thinking boot.kernelModules.foo = false; will blacklist it, even though blacklistedKernelModules existts | 21:57:18 |
@elvishjerricco:matrix.org | * Hmph that will inevitably lead to some people thinking boot.kernelModules.foo = false; will blacklist it, even though blacklistedKernelModules exists | 21:57:19 |
@elvishjerricco:matrix.org | not sure now | 21:57:35 |
Nick Cao | Is it possible to define something like lib.mkRemove, which at option merge time, would remove the matching entry from the list | 21:59:12 |
Nick Cao | Here: https://github.com/linyinfeng/nixpkgs/commit/80be7b4c5c1842147b569fb50670952ba726d90c | 22:01:19 |
@elvishjerricco:matrix.org | I feel like it'd be better to have a mkApply or something that just adds a finalization function to that priority layer | 22:02:38 |
@elvishjerricco:matrix.org | Ok, I'm happier with this now: https://github.com/NixOS/nixpkgs/pull/375975 | 23:42:39 |
@elvishjerricco:matrix.org | I made it possible to set / unset kernel modules as an attrset, with descriptions making it clear that this does not do blacklisting (though I made a similar change to blacklistedKernelModules). And I added a warning to the allowMissingModules description telling people they should disable individual modules instead. | 23:43:52 |
@elvishjerricco:matrix.org | oh shit I have to document that type I factored out into lib now don't I | 23:44:26 |
| 19 Mar 2025 |
| @jkxyz:matrix.org left the room. | 16:17:35 |
| Contact @rappet:rappet.xyz instead changed their profile picture. | 23:12:01 |
| 20 Mar 2025 |
@elvishjerricco:matrix.org | So this is interesting: https://github.com/NixOS/nixpkgs/pull/391329 | 06:39:13 |
@elvishjerricco:matrix.org | I had assumed that this is covered by boot.kernel.sysctl. But I guess sysfs and sysctl do slightly different things? | 06:39:40 |
@msanft:matrix.org | I thought that it's just a different interface to the same thing. | 08:09:04 |
@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 | 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 |
Ramses 🇵🇸 | Yeah, a lot of drivers expose things under /sys/class where you can write to files to configure stuff | 09:25:15 |
Ramses 🇵🇸 | 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 appear | 09:26:19 |
@elvishjerricco:matrix.org | that sounds more like a udev thing then, doesn't it? | 09:26:41 |