]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/carotte/networking.nix
losurdo: nix: update nixpkgs
[sourcephile-nix.git] / hosts / carotte / networking.nix
1 { hostName, ... }:
2 {
3 imports = [
4 networking/wireguard/intranet.nix
5 ];
6 networking = {
7 hostName = hostName;
8 domain = "wg";
9 firewall.enable = true;
10 firewall.allowedTCPPorts = [ 22 ];
11 #wireless.enable = true;
12 useDHCP = true;
13 #networkmanager.enable = true;
14 };
15 services.openssh = {
16 openFirewall = true;
17 settings.X11Forwarding = true;
18 };
19 programs.ssh = {
20 extraConfig = ''
21 Compression = yes
22 '';
23 };
24 }