feat: new host homeserver
This commit is contained in:
parent
0c28afc6c5
commit
f2712b4822
4 changed files with 134 additions and 1 deletions
29
nixos/hosts/homeserver/default.nix
Normal file
29
nixos/hosts/homeserver/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
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;
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
networking.firewall.allowedUDPPorts = [ ];
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue