mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 00:58:16 +00:00
33 lines
609 B
Nix
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" ];
|
|
|
|
}
|
|
|