20 lines
464 B
Nix
20 lines
464 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" = {
|
|
# Wallpapers stored in m3ta-home/assets/wallpapers/
|
|
source = ./../../../../assets/wallpapers;
|
|
recursive = true;
|
|
};
|
|
};
|
|
}
|