mermet: calibre: fix ExecStart=
[sourcephile-nix.git] / hosts / carotte / networking.nix
index ac1fa0fbc337c6fe86dfadf54bebbac54b893385..0039e4e81757f28a1da7bd31f1693f11b22a9834 100644 (file)
@@ -1,12 +1,24 @@
-{ 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
+    '';
+  };
 }