mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 06:11:55 -05:00
51 lines
1.4 KiB
Nix
51 lines
1.4 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
|
|
# Configure network proxy if necessary
|
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
|
|
# Enable networking
|
|
networking.networkmanager.enable = true;
|
|
|
|
# Enable tailscale
|
|
services.tailscale.enable = true;
|
|
|
|
# Open ports in the firewall.
|
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
# Or disable the firewall altogether.
|
|
# networking.firewall.enable = false;
|
|
|
|
# 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;
|
|
|
|
# Some programs need SUID wrappers, can be configured further or are
|
|
# started in user sessions.
|
|
# programs.mtr.enable = true;
|
|
# Set up syncthing to run as aly.
|
|
services = {
|
|
syncthing = {
|
|
enable = true;
|
|
user = "aly";
|
|
dataDir = "/home/aly"; # Default folder for new synced folders
|
|
configDir = "/home/aly/.config/syncthing"; # Folder for Syncthing's settings and keys
|
|
};
|
|
};
|
|
}
|
|
|