nixcfg/system/network/default.nix
2024-03-01 23:55:26 -05:00

32 lines
750 B
Nix

{ config, pkgs, ... }:
{
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Enable tailscale
services.tailscale.enable = true;
# Enable avahi.
services.avahi.enable = true;
services.avahi.nssmdns = true;
services.avahi.publish.enable = true;
services.avahi.publish.addresses = true;
services.avahi.publish.workstation = true;
# for a WiFi printer
services.avahi.openFirewall = true;
hardware.bluetooth.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;
networking.firewall.allowedTCPPorts = [ 22 ];
}