diff --git a/flake.nix b/flake.nix index 563b49f..d7b048c 100644 --- a/flake.nix +++ b/flake.nix @@ -100,6 +100,8 @@ ./modules/hardware/nvidia.nix ./modules/hardware/ssd.nix ./modules/hardware/firmware.nix + # use latest kernel + ./modules/kernel.nix ./modules/nix/settings.nix ./modules/nix/index.nix ./modules/nix/ld.nix diff --git a/modules/kernel.nix b/modules/kernel.nix new file mode 100644 index 0000000..91314b1 --- /dev/null +++ b/modules/kernel.nix @@ -0,0 +1,4 @@ +{pkgs, ...}: +{ + boot.kernelPackages = pkgs.linuxPackages_latest; +} diff --git a/systems/pc/configuration.nix b/systems/pc/configuration.nix index 365e49c..bb91845 100644 --- a/systems/pc/configuration.nix +++ b/systems/pc/configuration.nix @@ -10,8 +10,6 @@ ./hardware-configuration.nix ]; - boot.kernelPackages = pkgs.linuxPackages_latest; - # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true;