I’m trying to compile the kernel module but I can’t find the location of the kernel headers. I found and installed the linuxHeaders package via Nix search but I couldn’t solve the problem.
hotfix-kvadra-touchpad on master [?] via v14.2.1-gcc took 37s
❯ uname -r
6.15.6
hotfix-kvadra-touchpad on master [?] via v14.2.1-gcc
❯ nix-shell
hotfix-kvadra-touchpad on master [?] via v14.2.1-gcc via impure (shell)
❯ uname -r
6.15.6
hotfix-kvadra-touchpad on master [?] via v14.2.1-gcc via impure (shell)
❯ nix eval --raw nixpkgs#linuxHeaders
/nix/store/ml8m9via9a0d4ixk9zz1s477lyjvvrk8-linux-headers-6.14.7
ls -lah /nix/store/ml8m9via9a0d4ixk9zz1s477lyjvvrk8-linux-headers-6.14.7
"/nix/store/ml8m9via9a0d4ixk9zz1s477lyjvvrk8-linux-headers-6.14.7": No such file or directory (os error 2)
nix repl --file '<nixpkgs>'
Nix 2.28.4
Type :? for help.
Loading installable ''...
Added 24774 variables.
nix-repl> :b pkgs.linuxHeaders
This derivation produced the following outputs:
out -> /nix/store/1vrsi68s2y6xjk3pcfim09ary675lmc3-linux-headers-6.12.7
nix-repl>
ll /nix/store/1vrsi68s2y6xjk3pcfim09ary675lmc3-linux-headers-6.12.7/
Permissions Size User Date Modified Name
dr-xr-xr-x - root 1 Oca 1970 include