moved sh settings to network .nix

This commit is contained in:
Aly Raffauf 2024-03-01 23:53:48 -05:00
parent 952ae62516
commit 89bbe3d167
2 changed files with 8 additions and 29 deletions

View file

@ -3,22 +3,9 @@
{ {
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # 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 # Enable tailscale
services.tailscale.enable = true; 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. # Enable avahi.
services.avahi.enable = true; services.avahi.enable = true;
services.avahi.nssmdns = true; services.avahi.nssmdns = true;
@ -34,7 +21,12 @@
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = true;
# Some programs need SUID wrappers, can be configured further or are programs.gnupg.agent = {
# started in user sessions. enable = true;
# programs.mtr.enable = true; enableSSHSupport = true;
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;
networking.firewall.allowedTCPPorts = [ 22 ];
} }

View file

@ -1,13 +0,0 @@
{ config, pkgs, ... }:
{
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
networking.firewall.allowedTCPPorts = [ 22 ];
}