From 3ed49dcd0224901c9ee671fb512db33f03cdf584 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Sun, 14 Apr 2024 07:36:09 -0400 Subject: [PATCH] global/security: add rsync.net ssh host alias --- modules/global/security.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/global/security.nix b/modules/global/security.nix index 3642bb6..c55226d 100644 --- a/modules/global/security.nix +++ b/modules/global/security.nix @@ -48,6 +48,18 @@ with lib; }]; }; + programs.ssh = { + extraConfig = with config.common; '' + Host rsync.net + Hostname ${rsyncnet.host} + User ${rsyncnet.user} + + Host admin.rsync.net + Hostname ${rsyncnet.host} + User ${rsyncnet.account} + ''; + }; + services.nginx = { statusPage = true; recommendedTlsSettings = true; @@ -69,5 +81,11 @@ with lib; forceSSL = true; }; }; + + rsyncnet = rec { + account = "de3482"; + user = "${account}s1"; + host = "${account}.rsync.net"; + }; }; }