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;
|
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"
|
echo "Mounting initial store"
|
||||||
(
|
(
|
||||||
set -eux
|
set -eux
|
||||||
@ -73,9 +91,9 @@ in
|
|||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "squashfs" "overlay" ];
|
availableKernelModules = [ "squashfs" "overlay" ];
|
||||||
boot.initrd.kernelModules = [ "loop" "overlay" ];
|
kernelModules = [ "loop" "overlay" ];
|
||||||
|
};
|
||||||
|
|
||||||
# Create the squashfs image that contains the Nix store.
|
# Create the squashfs image that contains the Nix store.
|
||||||
system.build.squashfsStore = netbootpkgs.makeSquashfsManifest {
|
system.build.squashfsStore = netbootpkgs.makeSquashfsManifest {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user