From e9eb5fe8ea6dca6dcd74bec31d5da98a03b3261d Mon Sep 17 00:00:00 2001 From: Richard Mauer Date: Sun, 29 Dec 2024 21:46:23 -0500 Subject: [PATCH] updated extraFiles --- quickly.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/quickly.nix b/quickly.nix index 35be503..64e068b 100644 --- a/quickly.nix +++ b/quickly.nix @@ -42,20 +42,16 @@ in boot.initrd = { # Include your files in the initrd - includeFiles = { + # this option came from AI, real option is extraFiles, keeping for reference + #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"; - } - ]; + initrd.extraFiles."./config/initrd-include".source = pkgs.runCommandNoCC "/install" {} "cp -R ${./config/initrd-include} $out"; postMountCommands = '' echo "Mounting initial store"