Anthony Rodriguez
587e8d321b
As an initial step towards refactoring the theming module, the options have been split up from the configuration itself. This will allow to find available options quicker, and separate concerns nicely. It was also renamed to style, to avoid confusion with its own options (eg. gtk.theme).
19 lines
525 B
Nix
19 lines
525 B
Nix
# stolen from https://raw.githubusercontent.com/carlsvelz/dotfiles/a7a109b2e19f73062b4961e7be75836e6d13408c/home/wayland/swaybg.nix
|
|
{
|
|
pkgs,
|
|
lib,
|
|
osConfig,
|
|
...
|
|
}: {
|
|
systemd.user.services.swaybg = {
|
|
Unit = {
|
|
Description = "Wayland wallpaper daemon";
|
|
PartOf = ["graphical-session.target"];
|
|
};
|
|
Service = {
|
|
ExecStart = "${lib.getExe pkgs.swaybg} -i ${osConfig.local.style.wallpaper} -m fill";
|
|
Restart = "on-failure";
|
|
};
|
|
Install.WantedBy = ["graphical-session.target"];
|
|
};
|
|
}
|