diff --git a/hosts/desktop.nix b/hosts/desktop.nix index 7890e05..978c334 100644 --- a/hosts/desktop.nix +++ b/hosts/desktop.nix @@ -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";