Hi Nixos^s new nix user here
I have a question about my Nixos installation. Is it during boot that I get an error ‘i801-smbus’.
The error repeats itself over 4-5 lines. Now that I know it is there. I have searched the internet and
found a number of threads describing the problem. and one of the problems described is that the ‘i801-smbus’ error causes data loss!.
By looking further I came across a block with a solution.
I have not tested the suggestion, and will first ask nix-discourse for a nix solution
I think I need some more explanation for this
I have looked at modprobe.nix and downloaded it, but is that the file I need or is there more than I need?
Another question is, is modprobe.nix a flake, and if so, how do I add it to configuration.nix?
In the /etc/modprobe.d/ file, I see a number of files, and it seems that it is the ubunto.conf file that I need
and I then need to add “i801_smbus” to the file and then ‘nixos-rebuild switch’ ‘–upgrade’. ?
ls modprobe.d
[nix-shell:~]$ ls /etc/modprobe.d/
debian.conf firmware.conf nixos.conf systemd.conf ubuntu.conf
and man modprobe.d 5 have 4 difrence conf file
nix-shell:~]$ man modprobe.d 5
/lib/modprobe.d/*.conf
/usr/local/lib/modprobe.d/*.conf
/run/modprobe.d/*.conf
/etc/modprobe.d/*.conf
Hi,
As you have mentioned that you are new to nixos you might want to check out some of the manuals or tutorials before continuing to much as otherwise you will encounter quite some pitfalls or will experience a high(er) Frustration level.
let me try to give brief explanation what I think an issue might be that could occur for you.
Not every thing might be 100% accurate and if to I am sorry for that in advance.
I assume you are somewhat familiar with classic Linux distributions, as you seem familiar in how to bring module configs into initramfs (which is not the thing a newbie learns first).
In nixos there is a fundamental difference to other traditional linuxes.
Nixos tries to declare the system with a programming language (in this case nix [the language]). That starts with how packages are built (e.G the build instructions for something like Firefox are described with nix [utilizing the known toolchains like GCC,…])
Aside Software it sees configuration also as something “build able”. Users can describe the desired outputs in their configuration.nix (that should sit at /etc/nixos/configuration.nix), unless you are using flakes or so or other tweaks to move it around.
But that is the big difference to understand and learn. There is quite less stuff here that you should do by typing some commands into bash or so. If you find some tutorials that drop something into files you will almost every time that will not work on nixos.
For building a valid configuration we need some abstraction layer (as most of the software we want to use is configured differently).
The abstraction layer is provided by the nixos modules.
A good point to search for options is search.nixos.org (and then hit for nixos options). Be aware that not every option is “searchable” there, there are also options that are flagged as hidden/internal (but you should not bother to much about those then).
The link I have provided is such an option.
So it connect the dots, I suggested that you want to set the option boot.extraModprobeConfig to the content that you wanted to set manually.