self-hosting/modules/openssh.nix
2021-11-26 00:14:44 +01:00

9 lines
260 B
Nix

{ pkgs, lib, config, ... }:
{
services.openssh.enable = true;
services.openssh.permitRootLogin = "prohibit-password";
users.users.root.openssh.authorizedKeys.keyFiles = [
../ssh_keys/phfroidmont-desktop.pub
../ssh_keys/froidmpa-laptop.pub
];
}