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,19 +1,22 @@
{ {
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; {
/* enable = true;
TODO: assert that hyprland is enabled settings = {
*/ preload = map ({ path, ... }: path) mappings;
{ wallpaper =
enable = true; map
settings = { ({ monitor
preload = [ wallpaper_path ]; , path
wallpaper = map (mon: "mon,${wallpaper_path}") monitor_names; , prefix ? ""
}; ,
}; }: "${monitor},${prefix}${path}")
mappings;
};
}; };
};
} }