diff --git a/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix b/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix index 311d8bbf0..c91cddcc3 100644 --- a/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix +++ b/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix @@ -25,11 +25,11 @@ let echo "Config files copied from $SOURCE_DIR to $DEST_DIR. Symlinks replaced with editable files." ''; - # Print the script contents during the build + # Write the script to a file in the home directory + script_file_path = "${config.home.homeDirectory}/copy-wallpapers_debug.sh"; _ = builtins.trace (lib.concatStringsSep "\n" [ - "=== Contents of copy-wallpapers.sh ===" - copy_wallpapers_script - "=== End of copy-wallpapers.sh ===" + "=== Script saved to: ${script_file_path} ===" + "You can inspect it with: cat '${script_file_path}'" ]); in { options = { @@ -37,6 +37,10 @@ in { }; config = lib.mkIf config.wallpaper.enable { + # Write the script to a file for inspection + home-manager.users.${config.home.username}.home.file."${script_file_path}".text = copy_wallpapers_script; + home-manager.users.${config.home.username}.home.file."${script_file_path}".executable = true; + # Use a script to copy all files from source to destination home-manager.users.${config.home.username}.home.file."${flakeRoot}/assets/hyprland/scripts/copy-wallpapers.sh".text = copy_wallpapers_script; home-manager.users.${config.home.username}.home.file."${flakeRoot}/assets/hyprland/scripts/copy-wallpapers.sh".executable = true;