aboutsummaryrefslogtreecommitdiff
path: root/etc/guix
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-03 14:55:48 -0300
committerEuAndreh <eu@euandre.org>2023-03-03 14:57:54 -0300
commitaa393d0ab63a382340e5972b08b41488e53785bc (patch)
treed9f08c3d6643f85bc852673fda6c56d14b32456b /etc/guix
parentbin/re: Add working utility (diff)
downloaddotfiles-aa393d0ab63a382340e5972b08b41488e53785bc.tar.gz
dotfiles-aa393d0ab63a382340e5972b08b41488e53785bc.tar.xz
Don't hardcode value for SSH authorized_keys
Instead of using (local-file ...) in the openssh-service-type configuration, and then replicating that on configuration.nix, instead remove the hardcoded values from the system configuration and make it dynamic, by putting it on the ~/.ssh/authorized_keys file itself.
Diffstat (limited to '')
-rw-r--r--etc/guix/system.scm5
1 files changed, 0 insertions, 5 deletions
diff --git a/etc/guix/system.scm b/etc/guix/system.scm
index 8cbd78ff..5ed6a93c 100644
--- a/etc/guix/system.scm
+++ b/etc/guix/system.scm
@@ -460,11 +460,6 @@ Seiko Epson Color Ink Jet Printers.")
(service openssh-service-type
(openssh-configuration
(password-authentication? #f)
- (authorized-keys
- `((,whoami ,(local-file
- (string-append (or (getenv "XDG_CONFIG_HOME")
- (string-append (getenv "HOME") "/.ssh"))
- "/ssh/id_rsa.pub")))))
(extra-content #"-
ClientAliveInterval 30
ClientAliveCountMax 20