From e352706ad39a4d14fe9601785bd2fa9d168ad05e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 29 Sep 2020 11:13:20 +0200 Subject: [PATCH] services: secret-service: Move instance last in the list of services. * gnu/services/virtualization.scm (secret-service-operating-system): Add the SECRET-SERVICE-TYPE instance to the end of the list. --- gnu/services/virtualization.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm index a50cf8b733..2410be450b 100644 --- a/gnu/services/virtualization.scm +++ b/gnu/services/virtualization.scm @@ -841,8 +841,12 @@ (define (secret-service-operating-system os) that will be listening to receive secret keys on port 1004, TCP." (operating-system (inherit os) - (services (cons (service secret-service-type 1004) - (operating-system-user-services os))))) + ;; Arrange so that the secret service activation snippet shows up before + ;; the OpenSSH and Guix activation snippets. That way, we receive OpenSSH + ;; and Guix keys before the activation snippets try to generate fresh keys + ;; for nothing. + (services (append (operating-system-user-services os) + (list (service secret-service-type 1004)))))) ;;;