summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrigory Shipunov2023-05-03 23:10:15 +0200
committerGrigory Shipunov2023-05-03 23:10:15 +0200
commit68c3f4559b8e1344186d2002eec785d0e3ea666d (patch)
tree5e714cd9d473e33c14147006c3ecb0e778f1c75e
parent324967112ecd42e2b3c4fdd49833322d4358248a (diff)
workaround amdgpu bug
-rw-r--r--hosts/toaster/amdgpu-sg-fix.nix4
-rw-r--r--hosts/toaster/default.nix1
2 files changed, 5 insertions, 0 deletions
diff --git a/hosts/toaster/amdgpu-sg-fix.nix b/hosts/toaster/amdgpu-sg-fix.nix
new file mode 100644
index 0000000..b67bd57
--- /dev/null
+++ b/hosts/toaster/amdgpu-sg-fix.nix
@@ -0,0 +1,4 @@
+{ ... }:
+{
+ boot.kernelParams = [ "amdgpu.sg_display=0" ];
+}
diff --git a/hosts/toaster/default.nix b/hosts/toaster/default.nix
index 55d9fe8..483d3e8 100644
--- a/hosts/toaster/default.nix
+++ b/hosts/toaster/default.nix
@@ -1,6 +1,7 @@
{ pkgs, ... }: {
imports = [
./amd.nix
+ ./amdgpu-sg-fix.nix
./hardware-configuration.nix
./irc.nix
./network.nix