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 + }; + }); + }) + ]; }