switching to linux 6.1 for nvidia

This commit is contained in:
Chris Cochrun 2023-05-05 13:01:28 -05:00
parent 1e5f1314e2
commit a4ba51fd03
2 changed files with 3 additions and 10 deletions

View file

@ -3,7 +3,7 @@
with lib; with lib;
{ {
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_6_1;
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;

View file

@ -3,14 +3,7 @@
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let
unstable = import <nixos-unstable> {
config = {
allowUnfree = true;
allowUnfreePredicate = (pkg: true);
};
};
in
{ {
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
@ -55,7 +48,7 @@ in
}; };
nvidia = { nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.latest; package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true; modesetting.enable = true;
}; };
}; };