From af45e6919c2821b01a075dda2ba1145c79eae049 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 15 Nov 2024 04:49:41 +0100 Subject: [PATCH] non-open cuda on pascal --- hosts/nixos/garp/configuration.nix | 11 ++++------- hosts/nixos/sopp/configuration.nix | 4 ++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/hosts/nixos/garp/configuration.nix b/hosts/nixos/garp/configuration.nix index cb7be24..bf7c387 100644 --- a/hosts/nixos/garp/configuration.nix +++ b/hosts/nixos/garp/configuration.nix @@ -8,17 +8,14 @@ "riscv64-linux" ]; - /** / - services.xserver.displayManager.autoLogin.enable = true; - services.xserver.displayManager.autoLogin.user = "pbsds"; - # tmp: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229 - systemd.services."getty@tty1".enable = false; - systemd.services."autovt@tty1".enable = false; - #boot.kernelPackages = pkgs.linuxPackages_latest; #hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest; #hardware.nvidia.modesetting.enable = false; # makes atom behave, but mpv refuses to start + # The open source driver does not support Pascal GPUs (1080) + # https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/nvidia/pascal/default.nix + hardware.nvidia.open = false; + # PRIME: (lspci) #hardware.nvidia.prime.intelBusId = "PCI:0:02:0"; #hardware.nvidia.prime.nvidiaBusId = "PCI:1:00:0"; diff --git a/hosts/nixos/sopp/configuration.nix b/hosts/nixos/sopp/configuration.nix index effac29..57ffad3 100644 --- a/hosts/nixos/sopp/configuration.nix +++ b/hosts/nixos/sopp/configuration.nix @@ -17,6 +17,10 @@ #hardware.nvidia.modesetting.enable = false; # makes atom behave, but mpv refuses to start hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.beta; + # The open source driver does not support Pascal GPUs (1080) + # https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/nvidia/pascal/default.nix + hardware.nvidia.open = false; + # PRIME: (lspci) #hardware.nvidia.prime.intelBusId = "PCI:0:02:0"; #hardware.nvidia.prime.nvidiaBusId = "PCI:1:00:0";