Add custom kernel config to shrink the image size

This commit is contained in:
Daniel Lundin 2024-10-11 15:06:27 +02:00
parent 5413d6ab6b
commit d65e479bef
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
9 changed files with 2564 additions and 50 deletions

View file

@ -0,0 +1,19 @@
{ lib, pkgs, ... }:
{
boot.kernelPackages =
let
version = "6.11.2";
in
pkgs.linuxPackagesFor (
pkgs.linuxManualConfig {
version = "${version}-patos1";
modDirVersion = version;
src = pkgs.fetchurl {
url = "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${version}.tar.xz";
hash = "sha256:ec9ef7a0b9cebb55940e1ef87a1f9e1004b10456a119dc386bb3e565b0d39c42";
};
configfile = ./generic.config;
allowImportFromDerivation = true;
}
);
}

File diff suppressed because it is too large Load diff