aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/pihlaja/default.nix
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2025-12-12 10:03:04 +0200
committerPetri Hienonen <petri.hienonen@gmail.com>2025-12-12 10:03:04 +0200
commitc780b431976691202d6fb3bc3ad72b0185898c72 (patch)
treee6acf8424ab8fc5b806c84a8d49d72efd9b006cf /hosts/pihlaja/default.nix
parentaaaaf63840b968a99266e6b154c5064521358189 (diff)
downloadnixos-c780b431976691202d6fb3bc3ad72b0185898c72.tar.zst
Add amdgpu, remove nvidia
Diffstat (limited to 'hosts/pihlaja/default.nix')
-rw-r--r--hosts/pihlaja/default.nix37
1 files changed, 7 insertions, 30 deletions
diff --git a/hosts/pihlaja/default.nix b/hosts/pihlaja/default.nix
index 3e49f68..214091f 100644
--- a/hosts/pihlaja/default.nix
+++ b/hosts/pihlaja/default.nix
@@ -2,15 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
-{
- inputs,
- outputs,
- lib,
- config,
- pkgs,
- vars,
- ...
-}:
+{ config, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
@@ -19,21 +11,10 @@
bluetooth.enable = true;
keyboard.qmk.enable = true;
logitech.wireless.enable = true;
- nvidia = {
- modesetting.enable = true;
- powerManagement = {
- enable = true;
- finegrained = false;
- };
- open = true;
- nvidiaSettings = false;
- package = config.boot.kernelPackages.nvidiaPackages.latest;
- };
- graphics = {
- extraPackages = with pkgs; [
- nvidia-vaapi-driver
- cudatoolkit
- ];
+ amdgpu = {
+ opencl.enable = true;
+ initrd.enable = true;
+ overdrive.enable = true;
};
bluetooth.settings.General.Name = "pihlaja";
@@ -46,11 +27,7 @@
environment = {
sessionVariables = {
- LIBVA_DRIVER_NAME = "nvidia";
- VK_DRIVER_FILES = "/run/opengl-driver/share/vulkan/icd.d/nvidia_icd.x86_64.json";
- GBM_BACKEND = "nvidia-drm";
- __GLX_VENDOR_LIBRARY_NAME = "nvidia";
- NVD_BACKEND = "direct";
+ AMD_USERQ = 1; # bypass kernel
};
systemPackages = with pkgs; [
logiops
@@ -152,7 +129,7 @@
};
};
xserver = {
- videoDrivers = [ "nvidia" ];
+ videoDrivers = [ "amdgpu" ];
};
udev.packages = with pkgs; [
qmk