nixos-config/hosts/example.nix
2023-01-31 18:11:19 -05:00

37 lines
No EOL
705 B
Nix

{ config, pkgs, lib, ... }:
{
imports =
[ # Include the results of the hardware scan.
./.modules/base/hardware.nix
./.modules/services/docker.nix
./.modules/arouzing.nix
];
# base packages
environment.systemPackages = with pkgs; [
htop
vim
# tailscale
];
networking = {
firewall.checkReversePath = "loose";
hostName = "example"; # Define your hostname.
networkmanager.enable = true;
};
services.tailscale.enable = true;
time.timeZone = "America/New_York";
# Open ports in the firewall.
networking.firewall = {
enable = true;
allowedTCPPorts = [];
allowedUDPPorts = [];
};
## main services
}