-{ pkgs, lib, config, hostName, ... }:
+{ hostName, ... }:
{
-networking = {
- hostName = hostName;
- domain = "sourcephile.fr";
- firewall.enable = true;
- firewall.allowedTCPPorts = [ 22 ];
- #wireless.enable = true;
- useDHCP = true;
- #networkmanager.enable = true;
-};
+ imports = [
+ networking/wireguard/intranet.nix
+ ];
+ networking = {
+ hostName = hostName;
+ domain = "wg";
+ firewall.enable = true;
+ firewall.allowedTCPPorts = [ 22 ];
+ #wireless.enable = true;
+ useDHCP = true;
+ #networkmanager.enable = true;
+ };
+ services.openssh = {
+ openFirewall = true;
+ settings.X11Forwarding = true;
+ };
+ programs.ssh = {
+ extraConfig = ''
+ Compression = yes
+ '';
+ };
}