dotfiles/modules/home/gui/desktop/wayland/wpaperd/default.nix
2025-06-25 18:28:16 -05:00

18 lines
417 B
Nix
Executable file

{ flake, osConfig, ... }:
let
inherit (flake.config.machines.devices) deimos;
hostname = osConfig.networking.hostName;
in
{
services.wpaperd = {
enable = true;
settings = {
"default" = {
path = "~/.config/wallpaper";
apply-shadow = true;
duration = "1m";
sorting = "random";
} // (if hostname == deimos.name then { mode = "center"; } else { });
};
};
}