From 55bb51b80443edfe0acfffea6843c7f14648fa1a Mon Sep 17 00:00:00 2001 From: shibazaki Date: Tue, 14 Jan 2025 17:30:28 +0100 Subject: [PATCH] asus rollback to an older version --- nixos/system/asus.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/nixos/system/asus.nix b/nixos/system/asus.nix index 55ed74d..accd93a 100644 --- a/nixos/system/asus.nix +++ b/nixos/system/asus.nix @@ -1,4 +1,6 @@ -{ config, lib, pkgs, ... }: { +{ config, pkgs, ... }: + +{ # Enable the supergfxd service services.supergfxd.enable = true; @@ -7,5 +9,19 @@ enable = true; enableUserService = true; }; + + # Override supergfxctl to use a specific commit + nixpkgs.overlays = [ + (self: super: { + supergfxctl = super.supergfxctl.overrideAttrs (oldAttrs: { + src = super.fetchFromGitHub { + owner = "asus-linux"; + repo = "supergfxctl"; + rev = "af23df7596712bb9433a3be917febadeb3f1f419"; # Full commit hash + sha256 = "0b9s64idcs3vyh0fdfcvd28cfa2vv4b125vdsw7088rzd1fhbh13"; # Use pkgs.lib to access lib + }; + }); + }) + ]; }