mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
services: openssh: Change 'authorized-keys' accessor name.
* gnu/services/ssh.scm (<openssh-configuration>)[authorized-keys]: Rename accessor to 'openssh-configuration-authorized-keys'. (openssh-activation, extend-openssh-authorized-keys): Adjust accordingly.
This commit is contained in:
parent
1b8f6a4cad
commit
5397c18157
1 changed files with 5 additions and 4 deletions
|
@ -348,7 +348,7 @@ (define-record-type* <openssh-configuration>
|
|||
(default ""))
|
||||
|
||||
;; list of user-name/file-like tuples
|
||||
(authorized-keys openssh-authorized-keys
|
||||
(authorized-keys openssh-configuration-authorized-keys
|
||||
(default '()))
|
||||
|
||||
;; Boolean
|
||||
|
@ -396,7 +396,7 @@ (define (touch file-name)
|
|||
(unless (= ENOENT (system-error-errno args))
|
||||
(apply throw args))))
|
||||
(copy-recursively #$(authorized-key-directory
|
||||
(openssh-authorized-keys config))
|
||||
(openssh-configuration-authorized-keys config))
|
||||
"/etc/ssh/authorized_keys.d")
|
||||
|
||||
(chmod "/etc/ssh/authorized_keys.d" #o555)
|
||||
|
@ -541,10 +541,11 @@ (define (extend-openssh-authorized-keys config keys)
|
|||
(openssh-configuration
|
||||
(inherit config)
|
||||
(authorized-keys
|
||||
(match (openssh-authorized-keys config)
|
||||
(match (openssh-configuration-authorized-keys config)
|
||||
(((users _ ...) ...)
|
||||
;; Build a user/key-list mapping.
|
||||
(let ((user-keys (alist->vhash (openssh-authorized-keys config))))
|
||||
(let ((user-keys (alist->vhash
|
||||
(openssh-configuration-authorized-keys config))))
|
||||
;; Coalesce the key lists associated with each user.
|
||||
(map (lambda (user)
|
||||
`(,user
|
||||
|
|
Loading…
Reference in a new issue