nixos-config/modules/pixiecore/installer.nix

30 lines
582 B
Nix
Raw Normal View History

2024-01-02 22:40:43 +01:00
{ nixosSystem }:
nixosSystem {
system = "x86_64-linux";
modules = [
2024-02-05 11:46:52 +01:00
(
{ config, modulesPath, ... }:
{
imports = [
"${modulesPath}/installer/netboot/netboot-minimal.nix"
2024-01-02 22:40:43 +01:00
2024-02-05 11:46:52 +01:00
../../users/root
];
2024-01-02 22:40:43 +01:00
2024-02-05 11:46:52 +01:00
config = {
services.openssh = {
enable = true;
openFirewall = true;
2024-01-02 22:40:43 +01:00
2024-02-05 11:46:52 +01:00
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
2024-01-02 22:40:43 +01:00
};
2024-02-05 11:46:52 +01:00
system.stateVersion = "24.05";
2024-01-02 22:40:43 +01:00
};
2024-02-05 11:46:52 +01:00
}
)
2024-01-02 22:40:43 +01:00
];
}