1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/sshd.nix

24 lines
499 B
Nix
Raw Normal View History

{
2022-03-10 21:52:12 +01:00
config,
lib,
pkgs,
...
}: let
inherit (import ../lib) sshPort kieran;
2022-03-10 21:52:12 +01:00
in {
users.motd = "Welcome to ${config.networking.hostName}!";
services.openssh = {
enable = true;
2022-03-10 21:52:12 +01:00
ports = [sshPort];
2023-06-06 19:59:27 +02:00
settings = {
PasswordAuthentication = false;
X11Forwarding = true;
};
};
2025-03-21 09:07:43 +01:00
users.users.root.openssh.authorizedKeys.keys = kieran.sshKeys ++ [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPoiRIn1dBUtpApcUyGbZKN+m5KBSgKIDQjdnQ8vU0xU kfm@kibbeh" # travel laptop
];
}