mirror of
https://github.com/bartvdbraak/dotfiles.git
synced 2025-07-15 20:49:10 +00:00
Add out-of-tree kernel module for Motorcomm yt6801 Network Interface Card (NIC) driver (#7)
* Add initial test to run with the new driver install * Fix unpacking by using git source * Change buildinputs and patch commands * Working example of extra yt6801 module * Add fixes * Consolidate changes
This commit is contained in:
parent
ecfb278d2a
commit
6cbbb95810
2 changed files with 50 additions and 1 deletions
|
@ -3,6 +3,12 @@
|
|||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
let
|
||||
yt6801 = import ./yt6801/default.nix {
|
||||
inherit (pkgs) lib stdenv fetchFromGitHub nukeReferences bc;
|
||||
kernel = pkgs.linuxPackages.kernel;
|
||||
};
|
||||
in
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
|
@ -11,7 +17,7 @@
|
|||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.extraModulePackages = [ yt6801 ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/c7cf28c3-5744-45cc-8a81-456d24e44b7a";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue