From bd6832c8d7b6ca86907fffcb58852ea721a5888d Mon Sep 17 00:00:00 2001 From: Rudolf Tucek Date: Sun, 9 Aug 2026 01:54:49 +0200 Subject: [PATCH 1/2] driver: test conditional loading of YT6801 kernel module Testing the flake PR fork rtucek/nixos-hardware#1. As we're currently using `linuxPackages_latest` with Linux v7.1.7, the YT6801 kernel module shall no longer be loaded. --- flake.lock | 11 ++++++----- flake.nix | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 047ab02..33508da 100644 --- a/flake.lock +++ b/flake.lock @@ -88,15 +88,16 @@ ] }, "locked": { - "lastModified": 1785232496, - "narHash": "sha256-65EQYIRRpTdpH8lUiB6Mvo5uBkG60aBIzAJuALfx+O0=", - "owner": "NixOS", + "lastModified": 1786231825, + "narHash": "sha256-dkRvsXJkQS1uHAGpr6L0wNr/bNnwu5M62dt3dQlYI4s=", + "owner": "rtucek", "repo": "nixos-hardware", - "rev": "2e790b0a6be8ec2b76174ac0931b8ff11919ec98", + "rev": "a77eb1da4078c414485db27161ba4b79f10bd17c", "type": "github" }, "original": { - "owner": "NixOS", + "owner": "rtucek", + "ref": "gate-yt6801-for-older-kernels", "repo": "nixos-hardware", "type": "github" } diff --git a/flake.nix b/flake.nix index 323dbb4..ac5f42b 100644 --- a/flake.nix +++ b/flake.nix @@ -6,7 +6,7 @@ nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05"; nixos-hardware = { - url = "github:NixOS/nixos-hardware"; + url = "github:rtucek/nixos-hardware/gate-yt6801-for-older-kernels"; inputs.nixpkgs.follows = "nixpkgs"; }; From 3ffa569d706431a0224b951528aa872bde810f2b Mon Sep 17 00:00:00 2001 From: Rudolf Tucek Date: Sun, 9 Aug 2026 02:08:47 +0200 Subject: [PATCH 2/2] Test with v6.18 kernel With this kernel, YT6801 must be loaded. --- system/core/boot.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/core/boot.nix b/system/core/boot.nix index de04057..7fe49bf 100644 --- a/system/core/boot.nix +++ b/system/core/boot.nix @@ -11,7 +11,7 @@ }; # Default to latest and greatest kernel by default. - kernelPackages = pkgs.linuxPackages_latest; + kernelPackages = pkgs.linuxPackages; # Typical kernel parameters, which we'd usually pass via GRUB's # `GRUB_CMDLINE_LINUX_DEFAULT`.