mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 15:43:55 -05:00
32 lines
751 B
Nix
32 lines
751 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.nssmdns4 = 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 ];
|
|
} |