silly me, forgot i needed that
This commit is contained in:
+3
-18
@@ -42,6 +42,9 @@
|
||||
};
|
||||
};
|
||||
|
||||
hardware.graphics.enable = true;
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
time.timeZone = "America/Toronto";
|
||||
@@ -56,24 +59,6 @@
|
||||
AllowSuspendThenHibernate = "no";
|
||||
};
|
||||
|
||||
systemd.services.amdgpu-performance = {
|
||||
description = "Force AMD GPU performance level to high";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = ''
|
||||
${pkgs.bash}/bin/bash -c '
|
||||
for gpu in /sys/class/drm/card*/device; do
|
||||
if [ -f "$gpu/vendor" ] && [ "$(cat "$gpu/vendor")" = "0x1002" ]; then
|
||||
echo high > "$gpu/power_dpm_force_performance_level"
|
||||
fi
|
||||
done
|
||||
'
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
system.stateVersion = "26.05";
|
||||
|
||||
Reference in New Issue
Block a user