2024-02-29 17:06:55 -05:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
2024-03-05 20:17:39 -05:00
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
2024-02-29 17:37:41 -05:00
|
|
|
# Enable tailscale
|
|
|
|
services.tailscale.enable = true;
|
|
|
|
|
2024-02-29 17:06:55 -05:00
|
|
|
# Enable avahi.
|
|
|
|
services.avahi.enable = true;
|
|
|
|
services.avahi.publish.enable = true;
|
|
|
|
services.avahi.publish.addresses = true;
|
|
|
|
services.avahi.publish.workstation = true;
|
2024-02-29 17:37:41 -05:00
|
|
|
|
2024-02-29 17:06:55 -05:00
|
|
|
# for a WiFi printer
|
|
|
|
services.avahi.openFirewall = true;
|
|
|
|
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
|
|
|
# Enable CUPS to print documents.
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
2024-03-01 23:53:48 -05:00
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
services.openssh.enable = true;
|
2024-03-02 17:06:12 -05:00
|
|
|
|
2024-03-09 20:05:39 -05:00
|
|
|
# Open TCP ports for SSH and Syncthing.
|
2024-03-02 17:06:12 -05:00
|
|
|
networking.firewall.allowedTCPPorts = [ 22 8384 22000 ];
|
|
|
|
|
|
|
|
# Open UDP ports for Syncthing.
|
|
|
|
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPortRanges = [
|
|
|
|
# KDE Connect
|
|
|
|
{ from = 1714; to = 1764; }
|
2024-03-09 20:05:39 -05:00
|
|
|
# Soulseek
|
|
|
|
{ from = 2234; to = 2239; }
|
2024-03-02 17:06:12 -05:00
|
|
|
];
|
2024-03-09 20:05:39 -05:00
|
|
|
|
2024-03-02 17:06:12 -05:00
|
|
|
networking.firewall.allowedUDPPortRanges = [
|
|
|
|
# KDE Connect
|
|
|
|
{ from = 1714; to = 1764; }
|
2024-03-09 20:05:39 -05:00
|
|
|
# Soulseek
|
|
|
|
{ from = 2234; to = 2239; }
|
2024-03-02 17:06:12 -05:00
|
|
|
];
|
2024-03-01 23:42:32 -05:00
|
|
|
}
|