summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Paśnikowski <marekpasnikowski@protonmail.com>2023-02-07 22:12:02 +0100
committerMarek Paśnikowski <marek@marekpasnikowski.pl>2023-02-07 22:12:02 +0100
commitbd498bb304adb78886c0b0750e3648d1d04beec3 (patch)
tree18c9c3bb59340f7d5c48288fffabb72cb507818a
parent2a4bc0c0b7f0bd5cddc2fd3a40de0540b06ee155 (diff)
Integrate the SSH configuration file
-rw-r--r--aisaka.org15
-rw-r--r--home-configuration.scm9
-rw-r--r--ssh.config7
3 files changed, 22 insertions, 9 deletions
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" "\
+ <<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