# Wallpaper collection — copies wallpapers to Hyprland config directory.
{
  config,
  lib,
  ...
}:
with lib; let
  cfg = config.desktop.theme.wallpapers.enable;
in {
  options.desktop.theme.wallpapers.enable = mkEnableOption "wallpapers for Hyprland";

  config = mkIf cfg {
    xdg.configFile."hypr/wallpapers" = {
      # Wallpapers are stored relative to the home/m3tam3re directory.
      source = ../../m3tam3re/wallpapers;
      recursive = true;
    };
  };
}
