lidarr-reports ssh

This commit is contained in:
Danilo Reyes
2025-11-11 15:05:46 -06:00
parent 3584aa49d1
commit d3224add2a
2 changed files with 20 additions and 16 deletions

View File

@@ -45,6 +45,12 @@
lidarr-mb-gap = lib.mkIf config.my.secureHost {
sopsFile = ../../secrets/env.yaml;
};
"private_keys/lidarr-mb-gap" = lib.mkIf config.my.secureHost {
sopsFile = ../../secrets/keys.yaml;
owner = config.users.users.lidarr-mb-gap.name;
inherit (config.users.users.lidarr-mb-gap) group;
path = "~/.ssh/ed25519_lidarr-mb-gap";
};
};
networking = {
hostName = "server";
@@ -86,19 +92,15 @@
envFile = config.sops.secrets.lidarr-mb-gap.path;
runInterval = "weekly";
syncToVPS = false;
# vpsHost = "user@vps";
# vpsPath = "/var/www/html";
# sshKeyFile = "/var/lib/lidarr-mb-gap/.ssh/id_ed25519";
# sshKnownHosts = {
# vps = {
# hostNames = [
# "vps"
# "vps.example.com"
# "1.2.3.4"
# ];
# publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI...";
# };
# };
vpsHost = "lidarr-reports@${config.my.ips.vps}";
vpsPath = "/var/www/html/lidarr-mb-gap";
sshKeyFile = config.sops.secrets."private_keys/lidarr-mb-gap".path;
sshKnownHosts = {
vps = {
hostNames = [ config.my.ips.vps ];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMvtTURGBtAFXxxfzMJVoNJrtWLykOloJ5XYjxGh1OUx";
};
};
};
};
}