2024-11-15 22:00:01 -09:00
|
|
|
{modulesPath, ...}: {
|
|
|
|
|
imports = [
|
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
(modulesPath + "/profiles/qemu-guest.nix")
|
|
|
|
|
./disk-config.nix
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Fixes iotop
|
|
|
|
|
boot.kernel.sysctl = {"kernel.task_delayacct" = 1;};
|
|
|
|
|
|
|
|
|
|
boot.loader.grub = {
|
|
|
|
|
# no need to set devices, disko will add all devices that have a EF02 partition to the list already
|
|
|
|
|
# devices = [ ];
|
|
|
|
|
efiSupport = true;
|
|
|
|
|
efiInstallAsRemovable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
|
enable = true;
|
2025-11-15 15:13:33 -09:00
|
|
|
settings.PasswordAuthentication = true;
|
2025-11-15 15:22:51 -09:00
|
|
|
settings.UsePAM = false;
|
2025-11-15 14:50:42 -09:00
|
|
|
settings.PermitRootLogin = "yes";
|
2025-11-15 14:56:45 -09:00
|
|
|
settings.AllowUsers = [ "root@135.181.83.225" ];
|
2024-11-15 22:00:01 -09:00
|
|
|
extraConfig = ''
|
|
|
|
|
PrintLastLog no
|
2025-11-15 15:36:33 -09:00
|
|
|
UsePAM no
|
2024-11-15 22:00:01 -09:00
|
|
|
'';
|
|
|
|
|
hostKeys = [
|
|
|
|
|
{
|
|
|
|
|
bits = 4096;
|
|
|
|
|
path = "/etc/ssh/ssh_host_rsa_key";
|
|
|
|
|
type = "rsa";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
path = "/etc/ssh/ssh_host_ed25519_key";
|
|
|
|
|
type = "ed25519";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# For secrets
|
|
|
|
|
{
|
|
|
|
|
path = "/root/.ssh/id_rsa_nix";
|
|
|
|
|
type = "ed25519";
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
}
|