diff options
-rwxr-xr-x | deploy.sh | 5 | ||||
-rw-r--r-- | flake.nix | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index e669a97..0000000 --- a/deploy.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -# deploy.sh: Generate and deploy files to the 'thor' web server. - -hugo && rsync -avz --delete public/ thor:/var/www/tdback.net/ @@ -4,7 +4,10 @@ outputs = { nixpkgs, ... }: let - supportedSystems = [ "x86_64-linux" ]; + supportedSystems = [ + "aarch64-linux" + "x86_64-linux" + ]; eachSystem = nixpkgs.lib.genAttrs supportedSystems; in { @@ -17,6 +20,7 @@ default = pkgs.mkShell { buildInputs = with pkgs; [ hugo + rsync ]; shellHook = '' @@ -31,6 +35,10 @@ POST="$SITE/content/posts/$1" [ -d $POST ] && rm -r $POST } + + deploy() { + hugo && rsync -avz --delete public/ thor:/var/www/tdback.net/ + } ''; }; } |