diff options
| author | EuAndreh <eu@euandre.org> | 2023-03-03 14:55:48 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2023-03-03 14:57:54 -0300 |
| commit | aa393d0ab63a382340e5972b08b41488e53785bc (patch) | |
| tree | d9f08c3d6643f85bc852673fda6c56d14b32456b /etc/guix/system.scm | |
| parent | bin/re: Add working utility (diff) | |
| download | dotfiles-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.scm | 5 |
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 |
