31 lines
811 B
Nix
31 lines
811 B
Nix
{ 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;
|
|
# Open kde connect ports
|
|
programs.kdeconnect.enable = true;
|
|
|
|
networking.firewall = {
|
|
enable = true;
|
|
logRefusedConnections = false;
|
|
};
|
|
|
|
# Enable CUPS to print documents.
|
|
# services.printing.enable = true;
|
|
|
|
security.rtkit.enable = true;
|
|
services.openssh = {
|
|
enable = true;
|
|
ports = [ 9022 ];
|
|
settings = {
|
|
PermitRootLogin = "no";
|
|
PasswordAuthentication = false;
|
|
KbdInteractiveAuthentication = false;
|
|
};
|
|
};
|
|
}
|