From bede5db265da76e0737a727c329cd9f63acc4698 Mon Sep 17 00:00:00 2001 From: iFargle Date: Thu, 15 Feb 2024 10:02:18 +0900 Subject: [PATCH] Testing --- .forgejo/workflows/deploy-rs.yml | 10 ++++++++-- flake.nix | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/deploy-rs.yml b/.forgejo/workflows/deploy-rs.yml index 8839a43b..0063f055 100644 --- a/.forgejo/workflows/deploy-rs.yml +++ b/.forgejo/workflows/deploy-rs.yml @@ -74,8 +74,6 @@ jobs: cd /etc/nixos/git git pull deploy - git commit -am \"[ACTIONS] deploy-rs updates (`date +%Y-%m-%d`)\" - git push " - name: "nixos-version (Post)" @@ -93,6 +91,14 @@ jobs: notification_title: '[ ${{ github.repository }}: ${{ github.workflow }} ] NixOS Deployed' notification_message: 'Deployment completed successfully.' name: "Send Notification - Success" + - if: success() + name: "Push changes to git" + run: | + ssh -q -A -o StrictHostKeyChecking=no albert@framework-server \ + " + git commit -am \"[ACTIONS] deploy-rs updates (`date +%Y-%m-%d`)\" + git push + " - if: failure() uses: https://git.sysctl.io/actions/gotify-action@master with: diff --git a/flake.nix b/flake.nix index 44bfdc19..38f71cfd 100644 --- a/flake.nix +++ b/flake.nix @@ -60,7 +60,7 @@ osaka-linode-01 = libx.mkHost { hostname = "osaka-linode-01"; }; framework-server = libx.mkHost { hostname = "framework-server"; }; nuc-server = libx.mkHost { hostname = "nuc-server"; }; - nixos-desktop = libx.mkHost { hostname = "nixos-desktop"; unfree = true; repo = "nixpkgs-unstable"; desktop = "hyprland"; theme = "tokyo-night"; }; + nixos-desktop = libx.mkHost { hostname = "nixos-desktop"; unfree = true; desktop = "hyprland"; theme = "tokyo-night"; }; nixos-framework = libx.mkHost { hostname = "nixos-framework"; unfree = true; desktop = "hyprland"; theme = "sakura-day"; }; backups-rpi4 = libx.mkHost { hostname = "backups-rpi4"; system = "aarch64-linux"; type = "small"; }; piaware-rpi4 = libx.mkHost { hostname = "piaware-rpi4"; system = "aarch64-linux"; type = "small"; };