20 lines
460 B
Nix
20 lines
460 B
Nix
|
|
# Wallpaper collection — copies wallpapers to Hyprland config directory.
|
||
|
|
{
|
||
|
|
config,
|
||
|
|
lib,
|
||
|
|
...
|
||
|
|
}:
|
||
|
|
with lib; let
|
||
|
|
cfg = config.desktop.theme.wallpapers;
|
||
|
|
in {
|
||
|
|
options.desktop.theme.wallpapers = 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;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|