aboutsummaryrefslogtreecommitdiff
path: root/nixops/modules/ssh
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-05 23:12:17 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-06 00:13:47 +0200
commit3a1461cf44102e6cd8cdee5e0f1ff1d7992894ad (patch)
treea8350184b1f4cf02267178c33b0190b595e7e5a3 /nixops/modules/ssh
parent0ede7366409e14482017f70f1efc53426279b8d0 (diff)
downloadNix-3a1461cf44102e6cd8cdee5e0f1ff1d7992894ad.tar.gz
Nix-3a1461cf44102e6cd8cdee5e0f1ff1d7992894ad.tar.zst
Nix-3a1461cf44102e6cd8cdee5e0f1ff1d7992894ad.zip
Upgrade nextcloud to 16.0
Diffstat (limited to 'nixops/modules/ssh')
-rw-r--r--nixops/modules/ssh/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nixops/modules/ssh/default.nix b/nixops/modules/ssh/default.nix
index 81b7751..4dc0d65 100644
--- a/nixops/modules/ssh/default.nix
+++ b/nixops/modules/ssh/default.nix
@@ -15,9 +15,12 @@
15 permissions = "0400"; 15 permissions = "0400";
16 text = myconfig.env.sshd.ldap.password; 16 text = myconfig.env.sshd.ldap.password;
17 }]; 17 }];
18 system.activationScripts.sshd = '' 18 system.activationScripts.sshd = {
19 deps = [ "secrets" ];
20 text = ''
19 install -Dm400 -o nobody -g nogroup -T /var/secrets/ssh-ldap /etc/ssh/ldap_password 21 install -Dm400 -o nobody -g nogroup -T /var/secrets/ssh-ldap /etc/ssh/ldap_password
20 ''; 22 '';
23 };
21 # ssh is strict about parent directory having correct rights, don't 24 # ssh is strict about parent directory having correct rights, don't
22 # move it in the nix store. 25 # move it in the nix store.
23 environment.etc."ssh/ldap_authorized_keys" = let 26 environment.etc."ssh/ldap_authorized_keys" = let