add 6.6, clean up old code
This commit is contained in:
parent
cbfaf9b9d9
commit
a661f9d183
7 changed files with 28 additions and 153 deletions
|
@ -21,7 +21,6 @@
|
|||
description = "Compress the resulting image with zstd.";
|
||||
};
|
||||
|
||||
# TODO this is unnecessary. just make the partition big enough to fit the boot files automatically.
|
||||
bootPartitionSize = mkOption {
|
||||
type = types.int;
|
||||
default = 64;
|
||||
|
@ -65,8 +64,8 @@
|
|||
})
|
||||
];
|
||||
|
||||
# TODO write definitions for the other southbridges
|
||||
boot.kernelPackages = pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor (pkgs.callPackage ../kernel/kernel-aeolia-5.3.nix {}));
|
||||
# TODO write definitions for the other southbridges and kernel versions
|
||||
boot.kernelPackages = pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor (pkgs.callPackage ../kernel/6.6.nix {}));
|
||||
|
||||
fileSystems = {
|
||||
"/boot" = {
|
||||
|
@ -81,7 +80,7 @@
|
|||
};
|
||||
|
||||
boot.loader.grub.enable = lib.mkForce false;
|
||||
boot.loader.initScript.enable = lib.mkForce true;
|
||||
boot.loader.generationsDir.enable = lib.mkForce true;
|
||||
|
||||
# from https://github.com/NixOS/nixpkgs/blob/e405f30513169feedb64b5c25e7b00242010af58/nixos/modules/installer/sd-card/sd-image.nix#L267
|
||||
boot.postBootCommands = let
|
||||
|
@ -164,7 +163,7 @@
|
|||
|
||||
# Copy the files that the PS4 Linux Loader payload expects to the boot partition
|
||||
mcopy -i boot.img ${config.system.build.kernel}/bzImage ::/bzImage
|
||||
mcopy -i boot.img ${config.system.build.initialRamdisk}/initrd.gz ::/initramfs.cpio.gz
|
||||
mcopy -i boot.img ${config.system.build.initialRamdisk}/initrd ::/initramfs.cpio.gz
|
||||
|
||||
# Verify the boot partition before copying it
|
||||
fsck.vfat -vn boot.img
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue