20 lines
568 B
Nix
20 lines
568 B
Nix
|
# stolen from https://raw.githubusercontent.com/carlsvelz/dotfiles/a7a109b2e19f73062b4961e7be75836e6d13408c/home/wayland/swaybg.nix
|
||
|
{
|
||
|
pkgs,
|
||
|
lib,
|
||
|
nixosConfig,
|
||
|
...
|
||
|
}: {
|
||
|
systemd.user.services.swaybg = {
|
||
|
Unit = {
|
||
|
Description = "Wayland wallpaper daemon";
|
||
|
PartOf = ["graphical-session.target"];
|
||
|
};
|
||
|
Service = {
|
||
|
ExecStart = builtins.trace nixosConfig.theme.wallpaper "${lib.getExe pkgs.swaybg} -i ${nixosConfig.theme.wallpaper} -m fill";
|
||
|
Restart = "on-failure";
|
||
|
};
|
||
|
Install.WantedBy = ["graphical-session.target"];
|
||
|
};
|
||
|
}
|