2020-10-28 21:43:33 +01:00
|
|
|
{
|
2022-03-10 21:52:12 +01:00
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
2023-02-22 10:02:55 +01:00
|
|
|
inherit (import ../lib) sshPort kieran;
|
2022-03-10 21:52:12 +01:00
|
|
|
in {
|
2020-10-28 21:43:33 +01:00
|
|
|
users.motd = "Welcome to ${config.networking.hostName}!";
|
|
|
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
|
enable = true;
|
2022-03-10 21:52:12 +01:00
|
|
|
ports = [sshPort];
|
2020-10-28 21:43:33 +01:00
|
|
|
passwordAuthentication = false;
|
|
|
|
|
forwardX11 = true;
|
|
|
|
|
};
|
|
|
|
|
|
2020-10-31 20:52:10 +01:00
|
|
|
users.users.root.openssh.authorizedKeys.keys = kieran.sshKeys pkgs;
|
2020-10-28 21:43:33 +01:00
|
|
|
}
|