1
0

linux: add openssh and tb user account

This commit is contained in:
2025-11-04 18:50:32 -08:00
parent e823d9af7a
commit b0a0d1efcd
3 changed files with 30 additions and 0 deletions

14
system/linux/openssh.nix Normal file
View File

@@ -0,0 +1,14 @@
{ ... }:
{
# This setups a SSH server. Very important if you're setting up a headless system.
# Feel free to remove if you don't need it.
services.openssh = {
enable = true;
settings = {
# Require a ssh key login for root.
PermitRootLogin = "prohibit-password";
# Use keys only. Remove if you want to SSH using password (not recommended)
PasswordAuthentication = true;
};
};
}