self-hosting/modules/openssh.nix

10 lines
260 B
Nix
Raw Normal View History

2021-07-15 17:09:32 +02:00
{ pkgs, lib, config, ... }:
{
services.openssh.enable = true;
2021-11-26 00:14:44 +01:00
services.openssh.permitRootLogin = "prohibit-password";
2021-07-15 17:09:32 +02:00
users.users.root.openssh.authorizedKeys.keyFiles = [
2021-07-15 17:33:31 +02:00
../ssh_keys/phfroidmont-desktop.pub
2021-07-24 03:02:54 +02:00
../ssh_keys/froidmpa-laptop.pub
2021-07-15 17:09:32 +02:00
];
}