From 2e5d92254856bef483af73931d682ac668813f5c Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Sun, 26 Nov 2023 20:18:19 +0100 Subject: [PATCH] place latest kernel config in its own file --- flake.nix | 2 ++ modules/kernel.nix | 4 ++++ systems/pc/configuration.nix | 2 -- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 modules/kernel.nix 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;