Files
nix-config/machines/hephaestus/configuration.nix
2021-06-24 08:03:13 -04:00

33 lines
609 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;
networking.hostName = "hephaestus";
networking = {
interfaces.enp34s0 = { useDHCP = true; };
defaultGateway = {
address = "192.168.0.1";
interface = "enp34s0";
};
firewall = {
allowedTCPPorts = [
6080 # hound
8001 # datasette
];
};
};
# Enable the OpenSSH server.
services.sshd.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
}