Files
nixos-config/modules/system/ssh.nix
T

13 lines
252 B
Nix

{ config, lib, pkgs, modulesPath, ... }:
{
config = lib.mkIf config.lumpiasty.sshd {
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
AllowUsers = [ "user" ];
};
};
};
}