nix-files/hosts/by-name/moby/kernel.nix

29 lines
974 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
# boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux-megous;
boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux-manjaro;
2023-08-16 09:08:35 +00:00
# boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux_latest;
2022-08-10 01:01:48 +00:00
# alternatively, apply patches directly to stock nixos kernel:
2022-08-10 01:01:48 +00:00
# boot.kernelPatches = manjaroPatches ++ [
# (patchDefconfig kernelConfig)
# ];
2023-08-16 09:08:35 +00:00
# configure nixos to build a compressed kernel image, since it doesn't usually do that for aarch64 target.
# without this i run out of /boot space in < 10 generations
nixpkgs.hostPlatform.linux-kernel = {
# defaults:
name = "aarch64-multiplatform";
baseConfig = "defconfig";
DTB = true;
autoModules = true;
preferBuiltin = true;
# extraConfig = ...
# ^-- raspberry pi stuff: we don't need it.
# target = "Image"; # <-- default
target = "Image.gz"; # <-- compress the kernel image
# target = "zImage"; # <-- confuses other parts of nixos :-(
};
}