dotfiles.nix/services/ssh.nix

13 lines
276 B
Nix
Raw Normal View History

2021-01-11 03:59:20 +00:00
{ config, pkgs, lib, ... }:
let pubkey = import ./pubkey.nix;
in {
services.openssh = {
enable = true;
permitRootLogin = "yes";
passwordAuthentication = lib.mkDefault false;
};
users.users.root.openssh.authorizedKeys.keys = lib.mkDefault [ pubkey.mat ];
}