mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
feat: adds sshd module with keys, etc
This commit is contained in:
parent
041cad5e7e
commit
d5a627e989
1 changed files with 15 additions and 0 deletions
15
modules/core/sshd.nix
Normal file
15
modules/core/sshd.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
ports = [22];
|
||||||
|
settings = {
|
||||||
|
PasswordAuthentication = true;
|
||||||
|
AllowUsers = null;
|
||||||
|
PermitRootLogin = "yes";
|
||||||
|
LoginGraceTime = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.liv.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGXi00z/rxVrWLKgYr+tWIsbHsSQO75hUMSTThNm5wUw liv@lila" ];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue