Merge pull request #3093 from lethalman/sshkeys

nixos/sshd: drop mode from auth keys file. Closes #2559
This commit is contained in:
John Wiegley 2014-06-26 10:26:47 -07:00
commit 8eedf968eb

View File

@ -56,7 +56,6 @@ let
authKeysFiles = let authKeysFiles = let
mkAuthKeyFile = u: { mkAuthKeyFile = u: {
target = "ssh/authorized_keys.d/${u.name}"; target = "ssh/authorized_keys.d/${u.name}";
mode = "0444";
source = pkgs.writeText "${u.name}-authorized_keys" '' source = pkgs.writeText "${u.name}-authorized_keys" ''
${concatStringsSep "\n" u.openssh.authorizedKeys.keys} ${concatStringsSep "\n" u.openssh.authorizedKeys.keys}
${concatMapStrings (f: readFile f + "\n") u.openssh.authorizedKeys.keyFiles} ${concatMapStrings (f: readFile f + "\n") u.openssh.authorizedKeys.keyFiles}