refactor: Make rescue iso minimal

This commit is contained in:
Tristan D. 2024-10-18 02:06:25 +02:00
parent 2fa46859ab
commit 7f069e282d
Signed by: tristan
SSH key fingerprint: SHA256:3RU4RLOoM8oAjFU19f1W6t8uouZbA7GWkaSW6rjp1k8

View file

@ -4,7 +4,8 @@
, ... , ...
}: { }: {
imports = [ imports = [
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix" # "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix"
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix" "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
]; ];
@ -23,20 +24,19 @@
version = "6.12-rc3"; version = "6.12-rc3";
kernelPatches = pkgs.callPackage "${inputs.nixpkgs}/pkgs/os-specific/linux/kernel/patches.nix" { }; kernelPatches = pkgs.callPackage "${inputs.nixpkgs}/pkgs/os-specific/linux/kernel/patches.nix" { };
ref = "6efbea77b390604a7be7364583e19cd2d6a1291b"; ref = "6efbea77b390604a7be7364583e19cd2d6a1291b";
linux_mainline = { buildLinux, fetchzip, ... } @ args: linux_mainline = { buildLinux, fetchzip, ... } @ args: buildLinux {
buildLinux { version = version;
version = version; src = fetchzip {
src = fetchzip { url = "https://git.kernel.org/torvalds/t/linux-${ref}.tar.gz";
url = "https://git.kernel.org/torvalds/t/linux-${ref}.tar.gz"; hash = "sha256-TP1sBMr34gAfIWD/LBlhorSebABUYsQE4OBuDFb348c=";
hash = "sha256-TP1sBMr34gAfIWD/LBlhorSebABUYsQE4OBuDFb348c=";
};
modDirVersion = lib.versions.pad 3 version;
kernelPatches = [
kernelPatches.bridge_stp_helper
kernelPatches.request_key_helper
];
extraMeta.branch = "master";
}; };
modDirVersion = lib.versions.pad 3 version;
kernelPatches = [
kernelPatches.bridge_stp_helper
kernelPatches.request_key_helper
];
extraMeta.branch = "master";
};
linuxMainlinePkg = pkgs.callPackage linux_mainline { }; linuxMainlinePkg = pkgs.callPackage linux_mainline { };
linuxMainlinePkgs = pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linuxMainlinePkg); linuxMainlinePkgs = pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linuxMainlinePkg);
in in