From 912e5b8a0023898a2f025084e99fa31734a9c465 Mon Sep 17 00:00:00 2001 From: Cassie Cheung Date: Wed, 6 Nov 2024 22:16:57 +0800 Subject: [PATCH] tuxedo/aura/15-gen1: migrate renamed option --- tuxedo/aura/15/gen1/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tuxedo/aura/15/gen1/default.nix b/tuxedo/aura/15/gen1/default.nix index 9ab1ca63d..6c4b5da08 100644 --- a/tuxedo/aura/15/gen1/default.nix +++ b/tuxedo/aura/15/gen1/default.nix @@ -1,4 +1,5 @@ -{lib, ...}: { +{ lib, ... }: +{ imports = [ ../../../../common/cpu/amd ../../../../common/pc/laptop @@ -9,5 +10,13 @@ services.thermald.enable = lib.mkDefault true; # keyboard backlight lives in /sys/class/leds/rgb:kbd_backlight - hardware.tuxedo-keyboard.enable = lib.mkDefault true; + hardware = + if lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.11" then + { + tuxedo-drivers.enable = lib.mkDefault true; + } + else + { + tuxedo-keyboard.enable = lib.mkDefault true; + }; }