diff --git a/nixos/common/desktops/plasma6/default.nix b/nixos/common/desktops/plasma6/default.nix index ff458399..0b9e4ebc 100644 --- a/nixos/common/desktops/plasma6/default.nix +++ b/nixos/common/desktops/plasma6/default.nix @@ -33,11 +33,11 @@ systemd.user.services = { "get-theme-times" = { enable = true; - path = [ pkgs.curl ]; + path = [ pkgs.curl pkgs.fx ]; script = '' echo "Activating get-theme-times systemd service" - curl -s wttr.in/Kyoto?format=%S > /tmp/wttr.sunrise - curl -s wttr.in/Kyoto?format=%s > /tmp/wttr.sunset + curl -s "https://api.sunrise-sunset.org/json?lat=35.680&lng=135.03" | fx .results.sunrise > /tmp/wttr.sunrise + curl -s "https://api.sunrise-sunset.org/json?lat=35.680&lng=135.03" | fx .results.sunset > /tmp/wttr.sunset echo "get-theme-times - complete" ''; after = [ "networking-online.target" ];