Builds of the vanilla Linux kernel for Nix.
The current releases are regularly pulled from https://kernel.org. Run `nix flake show github:andreoss/kernel-overlay' to see the exact versions.
linuxPackages
is an alias for the lateststable
release.linuxPackages_testing
is an alias for the latestmainline
release.
Version | Package | Date |
---|---|---|
6.14.0-rc3 | mainline | 2025-02-16 |
6.13.4 | stable | 2025-02-21 |
6.12.16 | 6_12 | 2025-02-21 |
6.6.79 | 6_6 | 2025-02-21 |
6.1.129 | 6_1 | 2025-02-21 |
5.15.178 | 5_15 | 2025-02-01 |
5.10.234 | 5_10 | 2025-02-01 |
5.4.290 | 5_4 | 2025-02-01 |
(Optional) Enable cachix substitutions in nix.settings
.
https://app.cachix.org/cache/kernel-overlay
NOTE: This change will only have effect after a `nix-daemon' restart.
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
substituters = [ "https://kernel-overlay.cachix.org" ];
trusted-public-keys = [
"kernel-overlay.cachix.org-1:rUvSa2sHn0a7RmwJDqZvijlzZHKeGvmTQfOUr2kaxr4="
];
};
Add as an input to a flake
{
description = "OS configuration";
inputs = {
...
kernel-overlay.url = "github:andreoss/kernel-overlay";
...
Enable overlay
outputs = inputs@{ self, nixpkgs, home-manager, ... }:
let
systems = lib.systems.flakeExposed;
lib = nixpkgs.lib;
eachSystem = lib.genAttrs systems;
in rec {
legacyPackages = eachSystem (system:
import nixpkgs {
inherit system;
overlays = [
inputs.kernel-overlay.overlays.default
];
});
...
By default, this overlay replaces the default kernel package. To use a specific one, specify it
inconfiguration.nix
. For example
boot.kernelPackages = pkgs.linuxPackages_4_14;