34 lines
752 B
Nix
34 lines
752 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
apple-silicon,
|
|
...
|
|
}:
|
|
|
|
{
|
|
nixpkgs.overlays = [ apple-silicon.overlays.apple-silicon-overlay ];
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = false;
|
|
|
|
hardware.asahi.useExperimentalGPUDriver = true;
|
|
hardware.asahi.extractPeripheralFirmware = true;
|
|
|
|
networking.hostName = "homeserver";
|
|
networking.networkmanager.enable = true;
|
|
|
|
services.xserver.xkb.layout = "us";
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
settings.PasswordAuthentication = false;
|
|
settings.KbdInteractiveAuthentication = false;
|
|
settings.PermitRootLogin = "no";
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
|
networking.firewall.allowedUDPPorts = [ ];
|
|
|
|
system.stateVersion = "25.11";
|
|
}
|