[moderatio] add ssh

This commit is contained in:
2022-10-04 19:20:14 +02:00
parent 5b6391ae08
commit 4eb35014b9
3 changed files with 18 additions and 0 deletions

11
machines/modules/sshd.nix Normal file
View File

@@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
let
sshKeys = import ../ssh_keys.nix;
in
{
services.openssh.enable = true;
services.openssh.ports = [ 22 ];
services.openssh.passwordAuthentication = false;
users.users.root.openssh.authorizedKeys.keys = sshKeys.admins;
}