chore: update NixOS configuration to use stable NVIDIA driver package from kernelPackages
All checks were successful
Nix Format Check / check-format (push) Successful in 37s

This commit is contained in:
Menno van Leeuwen 2024-11-21 22:39:19 +01:00
parent c5fdac86b2
commit 5cb3e5fe44
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -5,11 +5,6 @@
modulesPath, modulesPath,
... ...
}: }:
let
unstableTarball = fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
unstable = import unstableTarball { config = config.nixpkgs.config; };
in
{ {
imports = [ imports = [
/etc/nixos/hardware-configuration.nix /etc/nixos/hardware-configuration.nix
@ -54,6 +49,6 @@ in
nvidiaSettings = true; nvidiaSettings = true;
# Use the latest driver from the unstable channel # Use the latest driver from the unstable channel
package = unstable.linuxPackages.nvidiaPackages.stable; package = config.boot.kernelPackages.nvidiaPackages.stable;
}; };
} }