diff --git a/nixos/common/desktops/plasma6/default.nix b/nixos/common/desktops/plasma6/default.nix index d3f2c960..dc3875ad 100644 --- a/nixos/common/desktops/plasma6/default.nix +++ b/nixos/common/desktops/plasma6/default.nix @@ -52,9 +52,9 @@ systemctl --user start get-theme-times.service fi echo "Getting dates:" - SUNRISE=`date -d \`cat /tmp/wttr.sunrise\` +%s` + SUNRISE=`cat /tmp/wttr.sunrise | date +%s` echo "Sunrise: $SUNRISE" - SUNSET=`date -d \`cat /tmp/wttr.sunset\` +%s` + SUNSET=`cat /tmp/wttr.sunset | date +%s` echo "Sunset: $SUNSET" CURRENT=`date +%s` echo "Current: $CURRENT"