From a4ba51fd03097eb731e98c028aeda1bc8458584c Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 5 May 2023 13:01:28 -0500 Subject: [PATCH] switching to linux 6.1 for nvidia --- modules/base.nix | 2 +- system/shen/configuration.nix | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/modules/base.nix b/modules/base.nix index 6de1de3..a2d97c6 100644 --- a/modules/base.nix +++ b/modules/base.nix @@ -3,7 +3,7 @@ with lib; { - boot.kernelPackages = pkgs.linuxPackages_latest; + boot.kernelPackages = pkgs.linuxPackages_6_1; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; diff --git a/system/shen/configuration.nix b/system/shen/configuration.nix index 84ff3f8..7a6f184 100644 --- a/system/shen/configuration.nix +++ b/system/shen/configuration.nix @@ -3,14 +3,7 @@ # and in the NixOS manual (accessible by running ‘nixos-help’). { config, lib, pkgs, ... }: -let - unstable = import { - config = { - allowUnfree = true; - allowUnfreePredicate = (pkg: true); - }; - }; -in + { imports = [ # Include the results of the hardware scan. @@ -55,7 +48,7 @@ in }; nvidia = { - package = config.boot.kernelPackages.nvidiaPackages.latest; + package = config.boot.kernelPackages.nvidiaPackages.stable; modesetting.enable = true; }; };