49 lines
1.5 KiB
Nix
49 lines
1.5 KiB
Nix
{
|
|
modulesPath,
|
|
...
|
|
}:
|
|
{
|
|
|
|
imports = [ ./server.nix ];
|
|
|
|
boot.kernel.sysctl = {
|
|
"net.ipv4.ip_unprivileged_port_start" = 0;
|
|
};
|
|
|
|
boot.kernelParams = [
|
|
"systemd.log_level=info"
|
|
"systemd.log_target=console"
|
|
"systemd.journald.forward_to_console"
|
|
];
|
|
|
|
users.users."admin" = {
|
|
isNormalUser = true;
|
|
linger = true;
|
|
extraGroups = [ "wheel" ];
|
|
home = "/var/home/admin";
|
|
};
|
|
|
|
environment.etc = {
|
|
subuid = {
|
|
text = "admin:100000:65536";
|
|
mode = "0644";
|
|
};
|
|
|
|
subgid = {
|
|
text = "admin:100000:65536";
|
|
mode = "0644";
|
|
};
|
|
};
|
|
|
|
services.getty.autologinUser = "admin";
|
|
|
|
services.openssh.enable = true;
|
|
system.image.sshKeys.enable = true;
|
|
system.image.sshKeys.keys = [
|
|
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIIHMAEZx02kbHrEygyPQYStiXlrIe6EIqBCv7anIkL0pAAAABHNzaDo= dln1"
|
|
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIJNOBFoU7Cdsgi4KpYRcv7EhR/8kD4DYjEZnwk6urRx7AAAABHNzaDo= dln2"
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKDx+7ZEJi7lUCAtoHRRIduJzH3hrpx4YS1f0ZxrJ+uW dln3"
|
|
"sk-ecdsa-sha2-nistp256@openssh.com AAAAInNrLWVjZHNhLXNoYTItbmlzdHAyNTZAb3BlbnNzaC5jb20AAAAIbmlzdHAyNTYAAABBBLpoKvsZDIQQLfgzJhe1jAQubBNxjydkj8UfdUPaSXqgfB02OypMOC1m5ZuJYcQIxox0I+4Z8xstFhYP6s8zKZwAAAAEc3NoOg== lsjostro1"
|
|
"sk-ecdsa-sha2-nistp256@openssh.com AAAAInNrLWVjZHNhLXNoYTItbmlzdHAyNTZAb3BlbnNzaC5jb20AAAAIbmlzdHAyNTYAAABBBJ10mLOpInoqDaySyrxbzvcOrJfLw48Y6eWHa9501lw+hEEBXya3ib7nlvpCqEQJ8aPU5fVRqpkOW5zSimCiRbwAAAAEc3NoOg== lsjostro2"
|
|
];
|
|
}
|