switch to xanmod kernel

This commit is contained in:
Charlie Root 2024-10-23 00:07:16 +02:00
commit 011b66ca45
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
2 changed files with 34 additions and 14 deletions

View file

@ -3,14 +3,32 @@
lib,
pkgs,
...
}: {
}: let
inherit
(
pkgs.callPackage ./kernel/xanmod.nix {
inherit lib;
inherit
(pkgs)
stdenv
fetchFromGitHub
kernelPatches
buildLinux
variant
;
}
)
xanmod_blox
;
in {
# Time Zone
time.timeZone = "Europe/Zurich";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console.keyMap = "de";
security.polkit.enable = true;
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
boot.kernelPackages = pkgs.linuxPackagesFor xanmod_blox;
programs.nix-ld.enable = true;
services = {
fstrim.enable = lib.mkDefault true;

View file

@ -2,32 +2,31 @@
lib,
stdenv,
fetchFromGitHub,
kernelPatches,
buildLinux,
variant,
kernelPatches,
...
}: let
version = "6.11.3";
hash = "sha256-Pb/7XToBFZstI1DFgWg4a2HiRuSzA9rEsMBLb6fRvYc=";
xanmod_blox = buildLinux rec {
inherit version;
pname = "linux-xanmod";
modDirVersion = lib.versions.pad 3 "${version}-blox";
version = "6.11.3";
vendorSuffix = "xanmod1";
modDirVersion = lib.versions.pad 3 "${version}-xanmod1";
xanmod_blox = buildLinux {
inherit pname version modDirVersion;
src = fetchFromGitHub {
owner = "xanmod";
repo = "linux";
rev = modDirVersion;
inherit hash;
rev = "refs/tags/${version}-${vendorSuffix}";
hash = "sha256-Pb/7XToBFZstI1DFgWg4a2HiRuSzA9rEsMBLb6fRvYc=";
};
kernelPatches = [
kernelPatches.bridge_stp_helper
kernelPatches.request_key_helper
];
enableCommonConfig = true;
# Default Xanmod options
structuredExtraConfig = with lib.kernel; {
# CPUFreq governor Performance
@ -56,5 +55,8 @@
RCU_EXP_KTHREAD = yes;
};
};
in
in {
inherit
xanmod_blox
;
}