diff --git a/users/price/home.nix b/users/price/home.nix index 18a25743..4ceb96d7 100644 --- a/users/price/home.nix +++ b/users/price/home.nix @@ -521,10 +521,10 @@ in let wallpaper-dir = "${dotsDir}/.local/share/wallpapers"; in - [ - "${pkgs.swww}/bin/swww img -t random ${wallpaper-dir}/Nebula.jpg" - "${pkgs.swww}/bin/swww img -t wipe --transition-angle 40 -o eDP-1 ${wallpaper-dir}/Autumn-Leaves.jpg" - ]; + pkgs.writeShellScript "swww-init-wallpapers" '' + "${pkgs.swww}/bin/swww img -t random ${wallpaper-dir}/Nebula.jpg" || true + "${pkgs.swww}/bin/swww img -t wipe --transition-angle 40 -o eDP-1 ${wallpaper-dir}/Autumn-Leaves.jpg" || true + ''; }; Install.WantedBy = [ "swww-daemon.service" ]; Unit = {