home/hyprpaper: update attribute types
this will break keith :(
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user