From 5c2b0d8c2fcff8f6eb9a8d719fc3487abb4f8329 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 11 Apr 2026 11:24:05 -0400 Subject: [PATCH] Add mt7927 driver to quark. --- nix/configuration/flake.nix | 3 +++ nix/configuration/hosts/quark/default.nix | 1 + nix/configuration/hosts/quark/wifi.nix | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 nix/configuration/hosts/quark/wifi.nix diff --git a/nix/configuration/flake.nix b/nix/configuration/flake.nix index 8be7c10b..28570a97 100644 --- a/nix/configuration/flake.nix +++ b/nix/configuration/flake.nix @@ -28,6 +28,7 @@ url = "github:nix-community/disko"; inputs.nixpkgs.follows = "nixpkgs"; }; + mt7927.url = "github:cmspam/mt7927-nixos"; }; outputs = @@ -37,6 +38,7 @@ disko, impermanence, lanzaboote, + mt7927, ... }: let @@ -78,6 +80,7 @@ impermanence.nixosModules.impermanence lanzaboote.nixosModules.lanzaboote disko.nixosModules.disko + mt7927.nixosModules.default ./configuration.nix (./. + "/hosts/${hostname}") (./. + "/formats/${format}.nix") diff --git a/nix/configuration/hosts/quark/default.nix b/nix/configuration/hosts/quark/default.nix index e087e34a..128d6059 100644 --- a/nix/configuration/hosts/quark/default.nix +++ b/nix/configuration/hosts/quark/default.nix @@ -11,6 +11,7 @@ ./hardware-configuration.nix ./power_management.nix ./waybar.nix + ./wifi.nix ]; config = { diff --git a/nix/configuration/hosts/quark/wifi.nix b/nix/configuration/hosts/quark/wifi.nix new file mode 100644 index 00000000..d9c05b49 --- /dev/null +++ b/nix/configuration/hosts/quark/wifi.nix @@ -0,0 +1,20 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + imports = [ ]; + + config = { + hardware.mediatek-mt7927 = { + enable = true; + enableWifi = true; + enableBluetooth = true; + # Highly recommended to fix upload speed issues + disableAspm = true; + }; + }; +}