diff --git a/flake.nix b/flake.nix index 950ccfb..d2c7974 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,9 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + pinned-kernel.url = "github:NixOS/nixpkgs/3b5ec87c520b3f3f890c439da30b9fc3f7e173d3"; + #To pin Kernel versin 7.0.10 because others have bluetooth issues + nix-index-database = { url = "github:nix-community/nix-index-database"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/modules/configuration.nix b/modules/configuration.nix index 991a339..036cffb 100644 --- a/modules/configuration.nix +++ b/modules/configuration.nix @@ -16,7 +16,9 @@ pam-fprint-grosshack-pkg, awwwPkg, ... -}: { +}: let + kernel-pinned = import inputs.pinned-kernel {inherit system;}; +in { #Assign Swap to the PC swapDevices = [ { @@ -55,7 +57,7 @@ # Bootloader. boot = { - kernelPackages = pkgs.linuxPackages_latest; + kernelPackages = kernel-pinned.linuxPackages_latest; kernelParams = ["quiet" "splash"]; initrd = { systemd.enable = true; #For swap to automatically work