45 lines
928 B
Nix
45 lines
928 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
# Bootloader.
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
networking.hostName = "moon";
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_zen;
|
|
|
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
|
hardware.graphics = {
|
|
enable = true;
|
|
};
|
|
|
|
programs.steam.enable = true;
|
|
|
|
hardware.bluetooth.enable = true;
|
|
hardware.bluetooth.powerOnBoot = true;
|
|
|
|
# Enable the OpenSSH daemon.
|
|
services.openssh = {
|
|
enable = true;
|
|
settings.PasswordAuthentication = false;
|
|
};
|
|
|
|
# Open ports in the firewall.
|
|
networking.firewall.allowedTCPPorts = [
|
|
42000 # warpinator
|
|
42001 # warpinator
|
|
8080
|
|
];
|
|
networking.firewall.allowedUDPPorts = [
|
|
42000 # warpinator
|
|
42001 # warpinator
|
|
];
|
|
|
|
programs.nix-ld.enable = true;
|
|
programs.nix-ld.libraries = with pkgs; [
|
|
mesa
|
|
];
|
|
|
|
system.stateVersion = "24.05"; # Did you read the comment?
|
|
}
|
|
|