silly me, forgot i needed that

This commit is contained in:
2026-10-11 17:06:58 -04:00
parent 88bba8a03c
commit 288ab8e324
+3 -18
View File
@@ -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";