aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2025-01-03 12:39:29 -0600
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2025-01-03 12:39:29 -0600
commit4ed40a2c6d1709f9e63dc0a9478af97e92c85ba4 (patch)
tree387ffafb03a945a2f9f881f43220d0ca5cd3caee
parent18789098db26505c4021815386b335fe1f375d92 (diff)
system changes
-rw-r--r--macos.local/.flake/home/scripts/core.nix.org1
-rw-r--r--macos.local/.flake/home/scripts/deploy-website.nix.org25
2 files changed, 26 insertions, 0 deletions
diff --git a/macos.local/.flake/home/scripts/core.nix.org b/macos.local/.flake/home/scripts/core.nix.org
index 2a908c0..53f05db 100644
--- a/macos.local/.flake/home/scripts/core.nix.org
+++ b/macos.local/.flake/home/scripts/core.nix.org
@@ -6,6 +6,7 @@ Import various scripts useful on my system.
{
imports = [
+ ./deploy-website.nix
./launcher.nix
./remove-quarantine.nix
];
diff --git a/macos.local/.flake/home/scripts/deploy-website.nix.org b/macos.local/.flake/home/scripts/deploy-website.nix.org
new file mode 100644
index 0000000..f1d1d10
--- /dev/null
+++ b/macos.local/.flake/home/scripts/deploy-website.nix.org
@@ -0,0 +1,25 @@
+#+title: Website Deploy Script
+
+Deploy my website from a specified branch.
+#+begin_src nix
+ { config, pkgs, ... }:
+
+ {
+ home.file."./.local/bin/deploy-website" = {
+ executable = true;
+ text = ''
+#+end_src
+
+=ssh= into my server and run the deploy script, passing command line arguments to the script.
+#+begin_src sh
+ #!/bin/sh
+ /usr/bin/ssh jjanzen.ca "sudo /usr/local/bin/deploy.sh "$@""
+#+end_src
+
+
+Close the block.
+#+begin_src nix
+ '';
+ };
+ }
+#+end_src