home/hyprpaper: update attribute types

this will break keith :(
This commit is contained in:
2026-03-17 00:02:34 +01:00
parent e34b5ecce3
commit a4f56f922f

View File

@@ -1,18 +1,21 @@
{ {
config.flake.factory.hyprpaper = config.flake.factory.hyprpaper = mappings: { config
{ wallpaper_path , osConfig
, monitor_names , lib
, , ...
}: { config, ... }: { }: {
services.hyprpaper = services.hyprpaper = assert osConfig.programs.hyprland.enable; {
/*
TODO: assert that hyprland is enabled
*/
{
enable = true; enable = true;
settings = { settings = {
preload = [ wallpaper_path ]; preload = map ({ path, ... }: path) mappings;
wallpaper = map (mon: "mon,${wallpaper_path}") monitor_names; wallpaper =
map
({ monitor
, path
, prefix ? ""
,
}: "${monitor},${prefix}${path}")
mappings;
}; };
}; };
}; };