Anthony Rodriguez
e24ab1eb95
This is mostly so that applications like ReGreet, which are managed by NixOS instead of HM, can also use the same GTK settings. It reduces repeating code by a lot and allows changing themes way more easily now.
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,
|
|
nixosConfig,
|
|
...
|
|
}: {
|
|
systemd.user.services.swaybg = {
|
|
Unit = {
|
|
Description = "Wayland wallpaper daemon";
|
|
PartOf = ["graphical-session.target"];
|
|
};
|
|
Service = {
|
|
ExecStart = "${lib.getExe pkgs.swaybg} -i ${nixosConfig.style.wallpaper} -m fill";
|
|
Restart = "on-failure";
|
|
};
|
|
Install.WantedBy = ["graphical-session.target"];
|
|
};
|
|
}
|