feat: switch to latest unstable nvidia driver

This commit is contained in:
Jacob Bachmann 2024-09-25 12:10:29 +02:00
parent d11845b7f6
commit 1447a77de5
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
3 changed files with 20 additions and 13 deletions

View file

@ -1,8 +1,8 @@
{
config,
lib,
modulesPath,
...
{ config
, lib
, modulesPath
, pkgs
, ...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
@ -37,6 +37,8 @@
boot.resumeDevice = "/dev/disk/by-label/ROOT";
hardware.nvidia.package = pkgs.unstable.linuxPackages.nvidiaPackages.latest;
fileSystems."/" = {
device = "/dev/disk/by-label/ROOT";
fsType = "btrfs";
@ -66,7 +68,7 @@
options = [ "subvol=@" ];
};
swapDevices = [ { device = "/swap/swapfile"; } ];
swapDevices = [{ device = "/swap/swapfile"; }];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";