From 23f987d2aff982f98266dbdfab6d35ce6ed9e8b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 3 Sep 2024 11:03:51 +0200 Subject: [PATCH] add workaround for nvidia --- nix/image-installer/module.nix | 3 ++- nix/noninteractive.nix | 1 + nix/noveau-workaround.nix | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 nix/noveau-workaround.nix diff --git a/nix/image-installer/module.nix b/nix/image-installer/module.nix index 07a1c5b..44a2100 100644 --- a/nix/image-installer/module.nix +++ b/nix/image-installer/module.nix @@ -40,8 +40,9 @@ in imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-base.nix") ../installer.nix - ./wifi.nix + ../noveau-workaround.nix ./hidden-ssh-announcement.nix + ./wifi.nix ]; systemd.tmpfiles.rules = [ "d /var/shared 0777 root root - -" ]; services.openssh.settings.PermitRootLogin = "yes"; diff --git a/nix/noninteractive.nix b/nix/noninteractive.nix index 54690dc..2e2d888 100644 --- a/nix/noninteractive.nix +++ b/nix/noninteractive.nix @@ -12,6 +12,7 @@ imports = [ ./zfs-minimal.nix ./no-bootloaders.nix + ./noveau-workaround.nix # reduce closure size by removing perl "${modulesPath}/profiles/perlless.nix" # FIXME: we still are left with nixos-generate-config due to nixos-install-tools diff --git a/nix/noveau-workaround.nix b/nix/noveau-workaround.nix new file mode 100644 index 0000000..5865852 --- /dev/null +++ b/nix/noveau-workaround.nix @@ -0,0 +1,4 @@ +{ + # fixes blank screen on boot for some cards + boot.kernelParams = [ "nouveau.modeset=0" ]; +}