{ lib, config, flakeRoot, pkgs, ... }: let sourceDir = "${flakeRoot}/assets/hyprland/wallpaperstuff"; targetDir = "${config.home.homeDirectory}/Droidnix/wallpaperstuff"; in { options = { wallpaper.enable = lib.mkEnableOption "Copy wallpaper stuff"; }; config = lib.mkIf config.wallpaper.enable { home-manager.users.${config.home.username}.home.activation.copyWallpapers = { description = "Copy wallpaperstuff to ~/Droidnix/wallpaperstuff"; script = '' echo "Copying wallpapers..." mkdir -p "${targetDir}" rsync -av --no-group --no-owner "$sourceDir/" "${targetDir}" ''; }; }; }