Refactor sound card config

This commit is contained in:
2023-12-10 19:45:31 +00:00
parent 8380969c95
commit 0d015ac418
3 changed files with 47 additions and 34 deletions

View File

@ -1,10 +1,6 @@
{ config, lib, pkgs, modulesPath, ... }:
let
snd-usb-audio-module = pkgs.callPackage ./snd-usb-audio.nix {
kernel = config.boot.kernelPackages.kernel;
};
in {
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
@ -13,11 +9,6 @@ in {
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.kernelPackages = pkgs.linuxPackages;
boot.extraModulePackages = [
(snd-usb-audio-module.overrideAttrs (_: {
patches = [ ./0001-Update-device-ID-for-PreSonus-1824c.patch ];
}))
];
boot.supportedFilesystems = [ "ntfs" ];
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];