Fix kernel priority

This commit is contained in:
Sandro - 2023-05-18 02:25:09 +02:00
parent d1e793f4c0
commit 0aa5340645
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
3 changed files with 4 additions and 3 deletions

View File

@ -66,6 +66,9 @@ in
};
boot = {
# repeat https://github.com/NixOS/nixos-hardware/blob/master/raspberry-pi/4/default.nix#L20
# to overwrite audio module
kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
loader = {
raspberryPi = {
enable = true;

View File

@ -39,7 +39,6 @@
};
};
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = lib.mkForce [
"console=tty0"
# allow GPIO access

View File

@ -6,8 +6,7 @@
};
config = lib.mkIf config.c3d2.audioServer.enable {
# higher than mkDefault but lower than no priority to allow easy overwriting in rpi-netboot
boot.kernelPackages = lib.mkOverride 900 pkgs.linuxPackages-rt_latest;
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages-rt_latest;
environment.systemPackages = with pkgs; [
mpd