Fixed nvidia?

This commit is contained in:
Aleksandr Lebedev 2025-02-28 20:40:01 +01:00
parent 08209e72c3
commit e1df719f9f
3 changed files with 4 additions and 13 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
{ {
hardware = { hardware = {
graphics = { graphics = {
@ -42,7 +42,7 @@
logitech.wireless.enable = true; logitech.wireless.enable = true;
}; };
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.mkDriver { #fixes https://github.com/NixOS/nixpkgs/issues/375730 temporary hardware.nvidia.package = lib.mkIf config.boot.kernelPackages == pkgs.linuxPackages_latest config.boot.kernelPackages.nvidiaPackages.mkDriver { #fixes https://github.com/NixOS/nixpkgs/issues/375730 temporary
version = "570.86.16"; # use new 570 drivers version = "570.86.16"; # use new 570 drivers
sha256_64bit = "sha256-RWPqS7ZUJH9JEAWlfHLGdqrNlavhaR1xMyzs8lJhy9U="; sha256_64bit = "sha256-RWPqS7ZUJH9JEAWlfHLGdqrNlavhaR1xMyzs8lJhy9U=";
openSha256 = "sha256-DuVNA63+pJ8IB7Tw2gM4HbwlOh1bcDg2AN2mbEU9VPE="; openSha256 = "sha256-DuVNA63+pJ8IB7Tw2gM4HbwlOh1bcDg2AN2mbEU9VPE=";

View file

@ -38,7 +38,7 @@
}; };
boot = { boot = {
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; #kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
loader = { loader = {
systemd-boot.enable = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
@ -161,17 +161,7 @@
graphics = { graphics = {
enable = true; enable = true;
}; };
bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Experimental = true;
}; };
};
};
};
services.blueman.enable = true;
security.polkit.enable = true; security.polkit.enable = true;

View file

@ -15,6 +15,7 @@
../../users/andrej ../../users/andrej
]; ];
hardware.nvidia.open = lib.mkForce false;
#sops.secrets."ssh_keys/${hwconfig.hostname}" = {}; #sops.secrets."ssh_keys/${hwconfig.hostname}" = {};
systemd.network.wait-online.enable = lib.mkForce false; systemd.network.wait-online.enable = lib.mkForce false;
} }