nixos/modules/common/ssh.nix

15 lines
285 B
Nix

{ pkgs, lib, config, ... }:
{
users.mutableUsers = false;
users.users."jake".openssh.authorizedKeys.keyFiles = [ ./authorized_keys ];
programs.mosh.enable = true;
services.openssh = {
enable = true;
permitRootLogin = "no";
passwordAuthentication = false;
};
}