switch to xanmod kernel
This commit is contained in:
parent
8fbd1a7682
commit
011b66ca45
2 changed files with 34 additions and 14 deletions
|
@ -3,14 +3,32 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
inherit
|
||||||
|
(
|
||||||
|
pkgs.callPackage ./kernel/xanmod.nix {
|
||||||
|
inherit lib;
|
||||||
|
inherit
|
||||||
|
(pkgs)
|
||||||
|
stdenv
|
||||||
|
fetchFromGitHub
|
||||||
|
kernelPatches
|
||||||
|
buildLinux
|
||||||
|
variant
|
||||||
|
;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
xanmod_blox
|
||||||
|
;
|
||||||
|
in {
|
||||||
# Time Zone
|
# Time Zone
|
||||||
time.timeZone = "Europe/Zurich";
|
time.timeZone = "Europe/Zurich";
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
console.keyMap = "de";
|
console.keyMap = "de";
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
|
||||||
|
boot.kernelPackages = pkgs.linuxPackagesFor xanmod_blox;
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
services = {
|
services = {
|
||||||
fstrim.enable = lib.mkDefault true;
|
fstrim.enable = lib.mkDefault true;
|
||||||
|
|
|
@ -2,32 +2,31 @@
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
kernelPatches,
|
|
||||||
buildLinux,
|
buildLinux,
|
||||||
variant,
|
kernelPatches,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
version = "6.11.3";
|
|
||||||
hash = "sha256-Pb/7XToBFZstI1DFgWg4a2HiRuSzA9rEsMBLb6fRvYc=";
|
|
||||||
|
|
||||||
xanmod_blox = buildLinux rec {
|
|
||||||
inherit version;
|
|
||||||
pname = "linux-xanmod";
|
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 {
|
src = fetchFromGitHub {
|
||||||
owner = "xanmod";
|
owner = "xanmod";
|
||||||
repo = "linux";
|
repo = "linux";
|
||||||
rev = modDirVersion;
|
rev = "refs/tags/${version}-${vendorSuffix}";
|
||||||
inherit hash;
|
hash = "sha256-Pb/7XToBFZstI1DFgWg4a2HiRuSzA9rEsMBLb6fRvYc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
kernelPatches = [
|
kernelPatches = [
|
||||||
kernelPatches.bridge_stp_helper
|
kernelPatches.bridge_stp_helper
|
||||||
kernelPatches.request_key_helper
|
kernelPatches.request_key_helper
|
||||||
];
|
];
|
||||||
|
|
||||||
enableCommonConfig = true;
|
enableCommonConfig = true;
|
||||||
|
|
||||||
# Default Xanmod options
|
# Default Xanmod options
|
||||||
structuredExtraConfig = with lib.kernel; {
|
structuredExtraConfig = with lib.kernel; {
|
||||||
# CPUFreq governor Performance
|
# CPUFreq governor Performance
|
||||||
|
@ -56,5 +55,8 @@
|
||||||
RCU_EXP_KTHREAD = yes;
|
RCU_EXP_KTHREAD = yes;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
|
inherit
|
||||||
xanmod_blox
|
xanmod_blox
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue