From edcb39eb15e3c9b44dbdf78705002d61910e0f6f Mon Sep 17 00:00:00 2001 From: albert Date: Tue, 18 Jun 2024 10:21:52 +0900 Subject: [PATCH] Update plasma --- .forgejo/workflows/update-flake-lock.yml | 7 ++++++- nixos/common/desktops/plasma6/default.nix | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/update-flake-lock.yml b/.forgejo/workflows/update-flake-lock.yml index 1d7f5c7b..4327a3b1 100644 --- a/.forgejo/workflows/update-flake-lock.yml +++ b/.forgejo/workflows/update-flake-lock.yml @@ -44,7 +44,12 @@ jobs: nix --extra-experimental-features "nix-command flakes" flake update echo "Git Diff:" git diff - - name: "Commit and Upload" + - name: "Nix Flake Check" + run: | + echo "Running Nix Flake Check" + cd /workspace/albert/nix + nix --extra-experimental-features "nix-command flakes" flake check + - if: success() run: | git commit -am "[ACTIONS] Flake Update (`date +%Y-%m-%d`)" git push diff --git a/nixos/common/desktops/plasma6/default.nix b/nixos/common/desktops/plasma6/default.nix index dc3875ad..9fc17856 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=`cat /tmp/wttr.sunrise | date +%s` + SUNRISE=`date $(cat /tmp/wttr.sunset) +%s` echo "Sunrise: $SUNRISE" - SUNSET=`cat /tmp/wttr.sunset | date +%s` + SUNSET=`date $(cat /tmp/wttr.sunset) +%s` echo "Sunset: $SUNSET" CURRENT=`date +%s` echo "Current: $CURRENT"