Hello,
I recently installed nixos on my workstation(hardware) and I am having problems with some kernel modules failing to load either when doing nixos-rebuild switch or on booting.
[user@nixos:/nix/store]$ sudo nixos-rebuild switch --show-trace
[sudo] password for user:
building Nix...
building the system configuration...
activating the configuration...
setting up /etc...
reloading user units for sddm...
reloading user units for user...
setting up tmpfiles
warning: the following units failed: systemd-modules-load.service
â—Ź systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/nix/store/dcq8vn5xnb0hn9phzp40y8mibfssvifz-systemd-243.7/example/systemd/system/systemd-modules-load.service; enabled; vendor preset: enabled)
Drop-In: /nix/store/46c9vdkf3x9508i3yzdc4xrmjw47qq2j-system-units/systemd-modules-load.service.d
└─overrides.conf
Active: failed (Result: timeout) since Wed 2020-03-25 12:23:30 CET; 24ms ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 1176 ExecStart=/nix/store/dcq8vn5xnb0hn9phzp40y8mibfssvifz-systemd-243.7/lib/systemd/systemd-modules-load (code=killed, signal=TERM)
Main PID: 1176 (code=killed, signal=TERM)
IP: 0B in, 0B out
CPU: 6ms
Mar 25 12:22:00 nixos systemd[1]: Starting Load Kernel Modules...
Mar 25 12:23:30 nixos systemd[1]: systemd-modules-load.service: start operation timed out. Terminating.
Mar 25 12:23:30 nixos systemd[1]: systemd-modules-load.service: Main process exited, code=killed, status=15/TERM
Mar 25 12:23:30 nixos systemd[1]: systemd-modules-load.service: Failed with result 'timeout'.
Mar 25 12:23:30 nixos systemd[1]: Failed to start Load Kernel Modules.
warning: error(s) occurred while switching to the new configuration
So to further debug this issue i tried :
[user@nixos:/nix/store]$ journalctl _PID=1176
– Logs begin at Mon 2020-03-23 16:06:41 CET, end at Wed 2020-03-25 12:23:30 CET. –
– No entries –
but unfortunately there are no logs (is there a nixos options to activate more logging for this ? )
my hardware-configuration contains the following kernel modules:
{ config, lib, pkgs, … }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];boot.initrd.availableKernelModules = [ “nvme” “xhci_pci” “ahci” “usbhid” “usb_storage” “sd_mod” ];
boot.initrd.kernelModules = ;
boot.kernelModules = [ “kvm-amd” “wl” ];
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
…
I am looking for guidance on how to debug/fix this issue.
Thx
P.s I am running on nixos 19.09