Files
nix-config/machines/hephaestus/configuration.nix
2021-12-13 20:12:28 -05:00

41 lines
824 B
Nix

{ config, pkgs, ... }:
{
imports = [ ./hardware.nix ];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
hardware.nvidia.modesetting.enable = true;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
security.pam.u2f.enable = true;
networking.hostName = "hephaestus";
networking = {
interfaces.enp34s0 = { useDHCP = true; };
defaultGateway = {
address = "192.168.0.1";
interface = "enp34s0";
};
firewall = {
allowedTCPPorts = [
19999 # netdata
];
allowedUDPPorts = [
41641 # tailscale
];
};
};
services.sshd.enable = true;
services.tailscale = { enable = true; };
services.xserver.videoDrivers = [ "nvidia" ];
}