Pinned linux kernel version so I can rollback to specific versions in the past for things like bluetooth issues
This commit is contained in:
@ -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";
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user