21 lines
490 B
Nix
21 lines
490 B
Nix
{ pkgs, lib, ... }:
|
|
{
|
|
config = lib.mkIf pkgs.stdenv.isLinux {
|
|
home.packages = [ pkgs.swww ];
|
|
|
|
systemd.user.services.swww = {
|
|
Unit = {
|
|
Description = "Wayland wallpaper daemon";
|
|
PartOf = [ "graphical-session.target" ];
|
|
After = [ "graphical-session.target" ];
|
|
};
|
|
|
|
Service = {
|
|
ExecStart = "${pkgs.swww}/bin/swww-daemon";
|
|
Restart = "on-failure";
|
|
};
|
|
|
|
Install.WantedBy = [ "graphical-session.target" ];
|
|
};
|
|
};
|
|
}
|