new wallpaperthingie

This commit is contained in:
2026-03-17 16:29:59 +00:00
parent df86b0fdc3
commit 2be760f056
@@ -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;