From 143fe4f8171a1d1eb0d675c3f9fde4a9033dedd0 Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Tue, 7 Feb 2023 22:12:02 +0100 Subject: Integrate the SSH configuration file --- aisaka.org | 15 ++++++++++++++- home-configuration.scm | 9 ++++++++- ssh.config | 7 ------- 3 files changed, 22 insertions(+), 9 deletions(-) delete mode 100644 ssh.config diff --git a/aisaka.org b/aisaka.org index 8098f04..4f23083 100644 --- a/aisaka.org +++ b/aisaka.org @@ -425,7 +425,20 @@ memory without overprovisioning, as well as to prolog the lifetime of SSD. #+begin_src scheme :noweb-ref ssh-user-configuration (simple-service 'ssh-configuration* home-files-service-type - `((".ssh/config" ,(local-file "ssh.config")))) + `((".ssh/config" ,(plain-file "ssh-config" "\ + <>\n")))) +#+end_src + +**** TODO SSH Configuration File + +#+begin_src bash :noweb-ref ssh-config + Host *.onion + ProxyCommand nc -x localhost:9050 -X5 %h %p + + Host kynio.onion + User kynio + Hostname prnpi5oblk35gzcihbgu3227xvanisouxgbejri57bnzjawcksq4l7yd.onion + Port 22 #+end_src * TODO Device Management diff --git a/home-configuration.scm b/home-configuration.scm index 2d13f2d..ab9048d 100644 --- a/home-configuration.scm +++ b/home-configuration.scm @@ -132,7 +132,14 @@ (description "Custom version of ORG-FC.") (default-value #f))) (simple-service 'ssh-configuration* home-files-service-type - `((".ssh/config" ,(local-file "ssh.config")))) + `((".ssh/config" ,(plain-file "ssh-config" "\ + Host *.onion + ProxyCommand nc -x localhost:9050 -X5 %h %p + + Host kynio.onion + User kynio + Hostname prnpi5oblk35gzcihbgu3227xvanisouxgbejri57bnzjawcksq4l7yd.onion + Port 22\n")))) (service (service-type (name 'trezor-user-packages) diff --git a/ssh.config b/ssh.config deleted file mode 100644 index f49de8b..0000000 --- a/ssh.config +++ /dev/null @@ -1,7 +0,0 @@ -Host *.onion - ProxyCommand nc -x localhost:9050 -X5 %h %p - -Host kynio.onion - User kynio - Hostname prnpi5oblk35gzcihbgu3227xvanisouxgbejri57bnzjawcksq4l7yd.onion - Port 22 \ No newline at end of file -- cgit v1.2.3