28 lines
683 B
Nix
28 lines
683 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
# Enable the supergfxd service
|
|
services.supergfxd.enable = true;
|
|
|
|
# Enable ASUS daemon services
|
|
services.asusd = {
|
|
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
|
|
};
|
|
});
|
|
})
|
|
];
|
|
}
|
|
|