diff --git a/modules/home-manager/programs/default.nix b/modules/home-manager/programs/default.nix index 9977ab1..161cc6f 100644 --- a/modules/home-manager/programs/default.nix +++ b/modules/home-manager/programs/default.nix @@ -10,6 +10,7 @@ ./mpv.nix ./ssh.nix ./starship.nix + ./swww.nix ./tlrc.nix ./tmux.nix ./waybar.nix diff --git a/modules/home-manager/programs/swww.nix b/modules/home-manager/programs/swww.nix new file mode 100644 index 0000000..5f19f3c --- /dev/null +++ b/modules/home-manager/programs/swww.nix @@ -0,0 +1,19 @@ +{ pkgs, ... }: +{ + 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" ]; + }; +}