u/Financial_Owl2289

▲ 1 r/NixOS

So, I've been having this issue with vscodium that is not present in vscode; vscodium seems to be completely unable to find header files, and I have never been so infuriated in my life with a piece of software. Someone, please, for the LOVE OF GOD help out!!!

so at first, vscode had the same error. However, and handy little note popped up that said: "hey! please run > configure intellisense to fix this" (paraphrased) and it immediately fixed this

Proper finding of header files in VScode

here's the same thing in vscodium, with clangd installed:

First, just look at all these garbage header files. Also notice <stdlib.h> cannot be found. stdio would do the same thing too.

Second, a good example; it can't even find string.h

I looked in the nix support discord, and found this! (it did not help)

HI NobbZ! He's here too! (I think he's in my attic too I'm kinda scared)

I tried his offered solution but to no avail. So FINALLY: can somebody please, help me out with this? I'm going bananas :(

reddit.com
u/Financial_Owl2289 — 14 days ago

First, some background. Disclaimer, I am NOT making a full LFS system! Anyways, I have an old pentium Acer Acros, and I've gotten tired of the distributions of the time (circa 1990s), and I've had an epiphany: I should just put my own kernel and compile my own software for it! I've also gotten sick of AI, and want to do this project completely seperately from it, as unfortunately I use nixOS, which means if I want to make anything for nixOS, I have to completely rely on AI. It's so disheartening. I wish nixOS had better docs. AI shouldn't be a prerequisite to using your system 😞. but, tangent aside, to put linux on there, I'll be making a CD image and making a kernel and an initramfs. That was when I realized I needed help (the initramfs, kernel went just fine). background over!

I have a question about how I should go about making the initial initramfs work, I'm a little confused. So, after I have a bunch of basic binaries set up, (right now I have busybox, e2fsprogs, and grub so I can boot, and I can add stuff later). Should I have like a little directory (say, "~/Linux/initramfs/") and have my FHS in there, so

~/Linux/initramfs/bin/ , /usr/ , /etc/ , ...

then, what should go in there? should it be minimal, like just busybox init in /bin? or should I cram as many binaries as I can in there? does the initramfs only serve to mount the drive, and then use the drive as / from then on? Basically, I just don't know how to go about it, and I don't know the theory behind it. Can somebody help me out, or point me to a document, or better yet, both? thanks!

reddit.com
u/Financial_Owl2289 — 15 days ago