Heavily inspired by https://github.com/Doc-Steve/dendritic-design-with-flake-parts. > Atomic commits? Never heard of them!
20 lines
410 B
Nix
20 lines
410 B
Nix
{
|
|
config.flake.factory.hyprpaper =
|
|
{ wallpaper_path
|
|
, monitor_names
|
|
,
|
|
}: { config, ... }: {
|
|
services.hyprpaper =
|
|
/*
|
|
TODO: assert that hyprland is enabled
|
|
*/
|
|
{
|
|
enable = true;
|
|
settings = {
|
|
preload = [ wallpaper_path ];
|
|
wallpaper = map (mon: "mon,${wallpaper_path}") monitor_names;
|
|
};
|
|
};
|
|
};
|
|
}
|