28 lines
533 B
Nix
28 lines
533 B
Nix
|
{ nixosSystem }:
|
||
|
nixosSystem {
|
||
|
system = "x86_64-linux";
|
||
|
modules = [
|
||
|
({ config, modulesPath, ... }: {
|
||
|
imports = [
|
||
|
"${modulesPath}/installer/netboot/netboot-minimal.nix"
|
||
|
|
||
|
../../users/root
|
||
|
];
|
||
|
|
||
|
config = {
|
||
|
services.openssh = {
|
||
|
enable = true;
|
||
|
openFirewall = true;
|
||
|
|
||
|
settings = {
|
||
|
PasswordAuthentication = false;
|
||
|
KbdInteractiveAuthentication = false;
|
||
|
};
|
||
|
};
|
||
|
system.stateVersion = "24.05";
|
||
|
};
|
||
|
|
||
|
})
|
||
|
];
|
||
|
}
|