20 lines
496 B
Nix
20 lines
496 B
Nix
# 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" = {
|
|
# Use the flake source root for pure evaluation compatibility
|
|
source = "${config.m3ta-home.paths.srcRoot}/assets/wallpapers";
|
|
recursive = true;
|
|
};
|
|
};
|
|
}
|