diff --git a/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix b/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix index dc1712cd0..007bce835 100644 --- a/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix +++ b/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix @@ -19,24 +19,31 @@ in }; config = lib.mkIf config.wallpaper.enable { + # Ensure the script is executable + home-manager.users.${config.home.username}.home.file."${script_path}".executable = true; + # Run the script on activation - home-manager.users.${config.home.username}.home.activation.copy-wallpapers.script = '' - echo "=== Activation Script Running ===" - echo "Script path: ${script_path}" - if [ -f "${script_path}" ]; then - echo "Script exists, executing..." - "${script_path}" - else - echo "ERROR: Script does not exist at ${script_path}" - exit 1 - fi - ''; + home-manager.users.${config.home.username}.home.activation.copy-wallpapers = { + description = "Copy wallpapers and set up wpaperd"; + script = '' + echo "=== Activation Script Running ===" + echo "Script path: ${script_path}" + if [ -f "${script_path}" ]; then + echo "Script exists, executing..." + chmod +x "${script_path}" + "${script_path}" + else + echo "ERROR: Script does not exist at ${script_path}" + exit 1 + fi + ''; + }; # Install wpaperd home-manager.users.${config.home.username}.home.packages = with pkgs; [ wpaperd ]; - # Configure wpaperd using home.file - home-manager.users.${config.home.username}.home.file.".config/wpaperd/config.toml".text = + # Create the config directory and file for wpaperd + home-manager.users.${config.home.username}.xdg.configFile."wpaperd/config.toml".text = builtins.readFile "${wallpaper_conf}"; }; }