diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-10-16 17:40:07 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-10-16 20:20:45 +0200 |
commit | 4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0 (patch) | |
tree | 9a7ede9ac3f1899074e9ef568a447f883191d3b5 /modules/private/ssh | |
parent | da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2 (diff) | |
download | Nix-4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0.tar.gz Nix-4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0.tar.zst Nix-4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0.zip |
Use attrs for secrets instead of lists
Diffstat (limited to 'modules/private/ssh')
-rw-r--r-- | modules/private/ssh/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
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 | |||
51 | AuthorizedKeysCommandUser nobody | 51 | AuthorizedKeysCommandUser nobody |
52 | ''; | 52 | ''; |
53 | 53 | ||
54 | secrets.keys = [{ | 54 | secrets.keys."ssh-ldap" = { |
55 | dest = "ssh-ldap"; | ||
56 | user = "nobody"; | 55 | user = "nobody"; |
57 | group = "nogroup"; | 56 | group = "nogroup"; |
58 | permissions = "0400"; | 57 | permissions = "0400"; |
59 | text = config.myEnv.sshd.ldap.password; | 58 | text = config.myEnv.sshd.ldap.password; |
60 | }]; | 59 | }; |
61 | system.activationScripts.sshd = { | 60 | system.activationScripts.sshd = { |
62 | deps = [ "secrets" ]; | 61 | deps = [ "secrets" ]; |
63 | text = '' | 62 | text = '' |