fix: pin kernel to 6.7.5

6.7.6, 6.7.7 are not working for unknown reasons
even though a previous NixOS stable 23.11 revision with 6.7.7 worked…

Let's keep it that way for now, pending bisection between 6.7.5..6.7.6.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
raito 2024-06-30 14:15:30 +02:00
parent edf11d7650
commit c96bce2975
3 changed files with 11 additions and 12 deletions

View file

@ -304,17 +304,17 @@
}, },
"nixpkgs-for-kernel": { "nixpkgs-for-kernel": {
"locked": { "locked": {
"lastModified": 1709742294, "lastModified": 1708680708,
"narHash": "sha256-8iPomMqw7grXVsugMJhsnHdbre8LnXOQUtHtMXRaWqc=", "narHash": "sha256-K2SxCGk13nLOFMeNG1RjzFDrh513VtzFzFhp0NsnJRY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "56051fbe049bf39adc1f08eb51740c226a4c3b90", "rev": "593000b7d1e21cd84c7ecd965a64916b0982b202",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "56051fbe049bf39adc1f08eb51740c226a4c3b90", "rev": "593000b7d1e21cd84c7ecd965a64916b0982b202",
"type": "github" "type": "github"
} }
}, },

View file

@ -11,8 +11,8 @@
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs"; flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
# contains kernel 6.7.7, do not update # contains kernel 6.7.5, do not update
nixpkgs-for-kernel.url = "github:NixOS/nixpkgs/56051fbe049bf39adc1f08eb51740c226a4c3b90"; nixpkgs-for-kernel.url = "github:NixOS/nixpkgs/593000b7d1e21cd84c7ecd965a64916b0982b202";
nixos-hardware.url = "github:NixOS/nixos-hardware"; nixos-hardware.url = "github:NixOS/nixos-hardware";
nur.url = "github:nix-community/NUR"; nur.url = "github:nix-community/NUR";

View file

@ -2,6 +2,9 @@
let let
gcc-system-features = arch: lib.optionals (arch != null) ([ "gccarch-${arch}" ] gcc-system-features = arch: lib.optionals (arch != null) ([ "gccarch-${arch}" ]
++ map (x: "gccarch-${x}") lib.systems.architectures.inferiors.${arch}); ++ map (x: "gccarch-${x}") lib.systems.architectures.inferiors.${arch});
pkgsForKernel = import inputs.nixpkgs-for-kernel {
system = "x86_64-linux";
};
in in
{ {
imports = [ imports = [
@ -28,11 +31,7 @@ in
# TODO: there's a critical bug on 6.8+ where btrfs won't mount the rootfs at all. # TODO: there's a critical bug on 6.8+ where btrfs won't mount the rootfs at all.
# Do not upgrade until it is fixed. Ping Raito when needed. # Do not upgrade until it is fixed. Ping Raito when needed.
boot.kernelPackages = let boot.kernelPackages = pkgsForKernel.linuxPackages_6_7;
pkgsForKernel = import inputs.nixpkgs-for-kernel {
system = "x86_64-linux";
};
in pkgsForKernel.linuxPackages_6_7;
# Open public access to our PostgreSQL. # Open public access to our PostgreSQL.
services.postgresql.enable = true; services.postgresql.enable = true;