include config in initrd
This commit is contained in:
parent
1816c7b4d5
commit
60bf1e8040
26
quickly.nix
26
quickly.nix
@ -39,7 +39,25 @@ in
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
boot.initrd.postMountCommands = ''
|
||||
boot.initrd = {
|
||||
|
||||
# Include your files in the initrd
|
||||
includeFiles = {
|
||||
# Map local files to paths in the initrd
|
||||
#"/install/flake.nix" = ./install-files/flake.nix;
|
||||
#"/install/configuration.nix" = ./install-files/configuration.nix;
|
||||
# Add any other files you need
|
||||
};
|
||||
|
||||
# Alternatively, you can include entire directories
|
||||
contents = [
|
||||
{
|
||||
object = ./config/initrd-include;
|
||||
symlink = "/install";
|
||||
}
|
||||
];
|
||||
|
||||
postMountCommands = ''
|
||||
echo "Mounting initial store"
|
||||
(
|
||||
set -eux
|
||||
@ -73,9 +91,9 @@ in
|
||||
)
|
||||
'';
|
||||
|
||||
boot.initrd.availableKernelModules = [ "squashfs" "overlay" ];
|
||||
boot.initrd.kernelModules = [ "loop" "overlay" ];
|
||||
|
||||
availableKernelModules = [ "squashfs" "overlay" ];
|
||||
kernelModules = [ "loop" "overlay" ];
|
||||
};
|
||||
|
||||
# Create the squashfs image that contains the Nix store.
|
||||
system.build.squashfsStore = netbootpkgs.makeSquashfsManifest {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user