nix: flatten nixosModule implementation

This commit is contained in:
Primrose 2024-11-14 19:02:53 +01:00
parent 59ab652d82
commit e1c2e28442
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
15 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{ lib, hostname, ... }:
{
networking.hostName = hostname;
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "prohibit-password";
PasswordAuthentication = false;
};
ports = lib.mkDefault [ 22 ];
};
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBt+MINzxBF8uyFIuz/UvMZe9Ml+qxU0hxxi7UAmUzpc leana@bismuth"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBvP72buxKrTAtu9SxSqd0kzzbGxY7fUwgT100Q0S/Yi leana@carbon"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIBT72uvhrQs7Itf0UJKy6SGBvO0jiFCiZ3icYiTEJIK leana@tungsten"
];
}