Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreoss/kernel-overlay
linux kernel overlay
https://github.com/andreoss/kernel-overlay
kernel nix nixos
Last synced: about 2 months ago
JSON representation
linux kernel overlay
- Host: GitHub
- URL: https://github.com/andreoss/kernel-overlay
- Owner: andreoss
- Created: 2023-03-12T23:27:14.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T14:20:08.000Z (about 2 months ago)
- Last Synced: 2024-10-29T17:29:16.867Z (about 2 months ago)
- Topics: kernel, nix, nixos
- Language: Perl
- Homepage:
- Size: 606 KB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kernel overlay
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 latest `stable` release.
- `linuxPackages_testing` is an alias for the latest `mainline` release.## Available releases
|Version|Package|Date|
|---|---|---|
|6.12.0-rc3|mainline|2024-10-13|
|6.11.3|stable|2024-10-10|
|6.10.14|6_10|2024-10-10|
|6.6.56|6_6|2024-10-10|
|6.1.112|6_1|2024-09-30|
|5.15.167|5_15|2024-09-12|
|5.10.226|5_10|2024-09-12|
|5.4.284|5_4|2024-09-12|
|4.19.322|4_19|2024-09-12|## Installation
(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
in`configuration.nix`. For example```
boot.kernelPackages = pkgs.linuxPackages_4_14;
```