From 4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 16 Oct 2021 17:40:07 +0200 Subject: Use attrs for secrets instead of lists --- modules/private/ssh/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/private/ssh') diff --git a/modules/private/ssh/default.nix b/modules/private/ssh/default.nix index ca9b6fc..ee5dda5 100644 --- a/modules/private/ssh/default.nix +++ b/modules/private/ssh/default.nix @@ -51,13 +51,12 @@ in AuthorizedKeysCommandUser nobody ''; - secrets.keys = [{ - dest = "ssh-ldap"; + secrets.keys."ssh-ldap" = { user = "nobody"; group = "nogroup"; permissions = "0400"; text = config.myEnv.sshd.ldap.password; - }]; + }; system.activationScripts.sshd = { deps = [ "secrets" ]; text = '' -- cgit v1.2.3