hosts/dunamis: move nix.sshServe to misc
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
15
hosts/dunamis/misc/nix-ssh-serve.nix
Normal file
15
hosts/dunamis/misc/nix-ssh-serve.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{config, ...}: {
|
||||
nix = let
|
||||
inherit (builtins) readFile;
|
||||
inherit (config.users.users) user;
|
||||
in {
|
||||
sshServe = {
|
||||
enable = true;
|
||||
keys = map (f: readFile f) user.openssh.authorizedKeys.keyFiles;
|
||||
# protocol = "ssh-ng";
|
||||
trusted = true;
|
||||
write = true;
|
||||
};
|
||||
};
|
||||
security.pam.enableSSHAgentAuth = true;
|
||||
}
|
Reference in New Issue
Block a user