| 2 May 2024 |
| @nick_kadutskyi:matrix.org set a profile picture. | 21:19:14 |
| 6 May 2024 |
| @nick_kadutskyi:matrix.org changed their display name from nick_kadutskyi to nickkadutskyi. | 17:33:24 |
| @nick_kadutskyi:matrix.org left the room. | 17:35:39 |
| 8 May 2024 |
| checooh joined the room. | 11:58:14 |
| vzxplnhqr joined the room. | 22:54:18 |
vzxplnhqr | I am new to low level linux/nixos things (like kernel patching and whatnot). I want to disable all network-related things at the kernel level (ethernet, wifi, bluetooth, ...). | 22:56:45 |
vzxplnhqr | I found the "custom configuration" section on the wiki (https://nixos.wiki/wiki/Linux_kernel), is that probably the best strategy? | 22:57:55 |
| 9 May 2024 |
Tammi (ey/em) | i was trying to run crash on a nixos system where i enabled kdump support in the kernel, but i don't think it is even packaged? or did i miss it? i am talking about https://crash-utility.github.io/ which gives you the crash command which you can use to read kdumps or even attach to a live running kernel. i might be out of touch here but to me it is a common old utility that i use frequently on other systems. | 08:59:16 |
| lunarequest ⚡️ joined the room. | 13:45:27 |
lunarequest ⚡️ | hi I am trying to compile a kernel with thin lto and KCFI. I managed to override the stdenv and use clang however I'm running into some issues with building with think lto. using boot.kernelPatches i wanted to set LTO_NONE to no and LTO_CLANG, LTO_CLANG_THIN to y. However LTO_NONE is not set. Instead i get an error error: option not set correctly: LTO_NONE (wanted 'n' got 'y') any ideas how i can fix this? | 13:50:26 |
Pratham Patel | Can you share the part of your config about how you're doing this? | 13:52:09 |
lunarequest ⚡️ | https://github.com/Lunarequest/nixos-luna-config/blob/mistress/hosts/lifrith/modules/kernel.nix#L11-#L17 | 13:52:24 |
Pratham Patel | Have you tried using extraConfig instead? That's the recommended method to override the kernel config IIRC. | 13:58:51 |
| * Pratham Patel is afk | 13:59:00 |
lunarequest ⚡️ | can someone link how to use extraConfig with the kernel? | 14:04:21 |
lunarequest ⚡️ | so i figured out extraConfig should be option n/y/m I'm still getting the same error | 14:12:34 |
Pratham Patel | Does it pass the kconfig configuration section if you disable just the clang-sexy "patch"? If yes, then you have a kconfig dependency problem. | 14:17:07 |
lunarequest ⚡️ | yeah but i specifically want to resolve this problem | 14:18:03 |
K900 | extraStructuredConfig is correct | 14:18:27 |
lunarequest ⚡️ | is there a way to "unset" a option in extraStructedConfig? | 14:18:51 |
K900 | no | 14:18:54 |
Pratham Patel | Well in that case, take the config file from the successful build and run make menuconfig on it and see the diff to know what is interfering. | 14:19:07 |
K900 | But that's not the point anyway | 14:18:57 |
K900 | I'm pretty sure your problem is that you're just never giving it clang | 14:19:05 |
K900 | So you can't have thinLTO | 14:19:09 |
K900 | Because you don't have clang | 14:19:13 |
lunarequest ⚡️ | In reply to@k900:0upti.me I'm pretty sure your problem is that you're just never giving it clang nope i am giving it clang | 14:19:17 |
K900 | Where? | 14:19:22 |
lunarequest ⚡️ | https://github.com/Lunarequest/nixos-luna-config/blob/da084d44740ea6d482bfbb914fc47cc3692ea5bd/hosts/lifrith/configuration.nix#L26 | 14:19:48 |
K900 | Oh OK | 14:20:19 |