# ABOUTME: Hyprpaper wallpaper service configuration
# ABOUTME: Sets up wallpaper based on theme selection

{ config, pkgs, ... }:
let
  cfg = import ./config.nix;
  wallpaperPath = "~/Pictures/Wallpapers/${cfg.wallpaper}";
in
{
  # Copy wallpapers to Pictures directory
  home.file."Pictures/Wallpapers" = {
    source = ../../../common/desktop/assets/wallpapers;
    recursive = true;
  };

  services.hyprpaper = {
    enable = true;
    settings = {
      preload = [ wallpaperPath ];
      wallpaper = [ ",${wallpaperPath}" ];
    };
  };
}
