19 May 2024 |
lunarequest ⚡️ | I missed adding a file i will add it and share the trace | 12:44:41 |
lunarequest ⚡️ | https://0x0.st/XPLU.txt | 12:49:09 |
lunarequest ⚡️ | Full trace K900 | 12:49:18 |
K900 | Oh wait | 12:54:27 |
K900 | Where are you setting your kernel to that? | 12:54:32 |
lunarequest ⚡️ | In reply to @k900:0upti.me Where are you setting your kernel to that? To what? | 12:55:19 |
K900 | To your custom one | 12:56:09 |
lunarequest ⚡️ | So I made some minor changes. I define my custom kernel here
https://github.com/Lunarequest/nixos-luna-config/blob/bb403949cd82b332f9a849f2048e00c94d5eff05/hosts/lifrith/configuration.nix#L15
And set my it to my custom kernel here
https://github.com/Lunarequest/nixos-luna-config/blob/bb403949cd82b332f9a849f2048e00c94d5eff05/hosts/lifrith/modules/kernel.nix#L8 | 12:57:27 |
K900 | Yeah that's not valid | 12:57:42 |
K900 | You need to define all of your overrides in one place | 12:57:49 |
K900 | And then do something like boot.kernelPackages = pkgs.linuxPackagesFor pkgs.luna_linux | 12:58:03 |
lunarequest ⚡️ | How do I set environment variables with/in linuxManualConfig? | 12:59:18 |
K900 | You might need overrideAttrs on top of that | 13:00:01 |
lunarequest ⚡️ | I don't follow how to set overrideAttrs here | 13:02:46 |
K900 | luna_linux = (pkgs.linuxManualConfig { ... }).overrideAttrs(old: { FOO = 1; }) | 13:03:17 |
lunarequest ⚡️ | In reply to @k900:0upti.me
luna_linux = (pkgs.linuxManualConfig { ... }).overrideAttrs(old: { FOO = 1; }) Okay now I'm getting further I have an error about unused CFLAGS now. More specifically about -fno-strict-overflow as far as I can tell this is set by nixos? How would I override them | 13:17:11 |
K900 | That shouldn't be an error | 13:17:56 |
K900 | Can you post the exact error | 13:17:59 |
lunarequest ⚡️ | clang: error: argument unused during compilation: '-fno-strict-overflow' [-Werror,-Wunused-command-line-argument]
> make[3]: *** [../scripts/Makefile.build:244: scripts/mod/empty.o] Error 1
> make[2]: *** [/build/linux-6.9/Makefile:1196: prepare0] Error 2
> make[1]: *** [/build/linux-6.9/Makefile:240: __sub-make] Error 2
> make[1]: Leaving directory '/build/linux-6.9/build'
> make: *** [Makefile:240: __sub-make] Error 2 | 13:18:36 |
K900 | Don't set -Werror | 13:19:27 |
lunarequest ⚡️ | I looked into it. My kernel does not set `CONFIG_WERROR` and i never set -Werror in my cflags. | 13:24:31 |
lunarequest ⚡️ | I have no idea where these flags are set. | 13:27:37 |
K900 | Try hardeningDisable = ["all"] | 13:27:55 |
lunarequest ⚡️ | Where should I add that? | 13:35:45 |
K900 | In overrideAttrs | 13:39:17 |
lunarequest ⚡️ | Thanks that worked! | 13:41:16 |
20 May 2024 |
| Kamilla 'ova joined the room. | 23:24:39 |
22 May 2024 |
| NixOS Moderation Botchanged room power levels. | 15:25:53 |
| NixOS Moderation Botchanged room power levels. | 15:28:08 |
23 May 2024 |
| @mall0c:matrix.org removed their profile picture. | 00:27:56 |