nix!: refactored nixosModules

This commit is contained in:
Primrose 2024-10-12 00:11:47 +02:00
parent 3753271d60
commit 18f7c70bc9
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
17 changed files with 25 additions and 32 deletions

View file

@ -1,20 +0,0 @@
{ 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"
];
}