Compare commits

...

5 Commits

Author SHA1 Message Date
Noah Masur
316439dc9a fix: chmod for ssh keys 2024-03-24 18:51:35 -04:00
Noah Masur
edaf95cc1c fix: forgot to add auth to ssh 2024-03-24 18:50:23 -04:00
Noah Masur
5f867fa2dd fix: typo 2024-03-24 18:31:28 -04:00
Noah Masur
bdaf63da20 try to restart services after waiting for identity file 2024-03-24 18:25:26 -04:00
Noah Masur
c12d54314e fix: home-manager won't start with low mem
issue caused by nix-index memory usage
2024-03-24 18:25:18 -04:00
3 changed files with 11 additions and 1 deletions

View File

@ -123,10 +123,12 @@ jobs:
if: inputs.action == 'create'
run: |
echo "${{ env.DEPLOY_IDENTITY_BASE64 }}" | base64 -d > deploy_ed25519
chmod 0600 deploy_ed25519
echo "${{ env.ARROW_IDENTITY_BASE64 }}" | base64 -d > arrow_ed25519
chmod 0600 arrow_ed25519
- name: Copy Identity File to Host
if: inputs.action == 'create'
run: |
ssh -o StrictHostKeyChecking=accept-new noah@${{ steps.host.outputs.stdout }} 'mkdir -pv .ssh'
ssh -i deploy_ed25519 -o StrictHostKeyChecking=accept-new noah@${{ steps.host.outputs.stdout }} 'mkdir -pv .ssh'
scp -i deploy_ed25519 arrow_ed25519 noah@${{ steps.host.outputs.stdout }}:~/.ssh/id_ed25519

View File

@ -20,6 +20,10 @@
services.caddy.enable = true;
services.transmission.enable = true;
# nix-index seems to each up too much memory for Vultr
home-manager.users.${globals.user}.programs.nix-index.enable =
inputs.nixpkgs.lib.mkForce false;
virtualisation.vmVariant = {
virtualisation.forwardPorts = [{
from = "host";

View File

@ -78,6 +78,10 @@ in {
owner = "caddy";
group = "caddy";
};
systemd.services.cloudflare-api-secret.serviceConfig.ExecStartPost = ''
/run/current-system/sw/bin/systemctl restart caddy.service
/run/current-system/sw/bin/systemctl restart cloudflare-dyndns.service
'';
# Wait for secret to exist
systemd.services.caddy = {