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 = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
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 = {
|
nix-index-database = {
|
||||||
url = "github:nix-community/nix-index-database";
|
url = "github:nix-community/nix-index-database";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|||||||
@ -16,7 +16,9 @@
|
|||||||
pam-fprint-grosshack-pkg,
|
pam-fprint-grosshack-pkg,
|
||||||
awwwPkg,
|
awwwPkg,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
kernel-pinned = import inputs.pinned-kernel {inherit system;};
|
||||||
|
in {
|
||||||
#Assign Swap to the PC
|
#Assign Swap to the PC
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{
|
{
|
||||||
@ -55,7 +57,7 @@
|
|||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = kernel-pinned.linuxPackages_latest;
|
||||||
kernelParams = ["quiet" "splash"];
|
kernelParams = ["quiet" "splash"];
|
||||||
initrd = {
|
initrd = {
|
||||||
systemd.enable = true; #For swap to automatically work
|
systemd.enable = true; #For swap to automatically work
|
||||||
|
|||||||
Reference in New Issue
Block a user