pin old kernel for tablets
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ inputs }:
|
||||
{ inputs, ... }:
|
||||
|
||||
let
|
||||
nixpkgs = inputs.nixpkgs;
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
diff --recursive -u linux-6.15.9.orig/scripts/generate_rust_target.rs linux-6.15.9/scripts/generate_rust_target.rs
|
||||
--- linux-6.15.9.orig/scripts/generate_rust_target.rs 2025-08-01 10:51:29.000000000 +0200
|
||||
+++ linux-6.15.9/scripts/generate_rust_target.rs 2025-11-29 12:30:54.792372738 +0100
|
||||
@@ -225,7 +225,7 @@
|
||||
ts.push("features", features);
|
||||
ts.push("llvm-target", "x86_64-linux-gnu");
|
||||
ts.push("supported-sanitizers", ["kcfi", "kernel-address"]);
|
||||
- ts.push("target-pointer-width", "64");
|
||||
+ ts.push("target-pointer-width", 64);
|
||||
} else if cfg.has("X86_32") {
|
||||
// This only works on UML, as i386 otherwise needs regparm support in rustc
|
||||
if !cfg.has("UML") {
|
||||
@@ -1,4 +1,11 @@
|
||||
{ config, lib, modulesPath, ... }:
|
||||
{ config, lib, pkgs, inputs, modulesPath, ... }:
|
||||
let
|
||||
refSystem = inputs.nixpkgs-old-kernel.lib.nixosSystem {
|
||||
system = pkgs.system;
|
||||
modules = [ inputs.nixos-hardware.nixosModules.microsoft-surface-go ];
|
||||
};
|
||||
refKernelPackages = refSystem.config.boot.kernelPackages;
|
||||
in
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
@@ -16,10 +23,7 @@
|
||||
"rd.systemd.show_status=auto"
|
||||
];
|
||||
|
||||
boot.kernelPatches = [{
|
||||
name = "rust-1.91-fix";
|
||||
patch = ./hacks/rust-fix.patch;
|
||||
}];
|
||||
boot.kernelPackages = lib.mkForce refKernelPackages;
|
||||
|
||||
disko.devices.disk.main.content.partitions.swap.size = "8G";
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
Reference in New Issue
Block a user