aboutsummaryrefslogtreecommitdiff
path: root/modules/system/nixos/networking/default.nix
blob: 04cd1c3bbb75c663e16a3bf2efd2d967244bb7d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  imports = [
    ./resolved.nix

    ./networkd.nix
    ./iwd.nix
    ./wpasupplicant.nix
  ];

  networking = {
    firewall = {
      enable = true;
      checkReversePath = "loose";
    };

    # Disable default networking stuff
    dhcpcd.enable = false;
    useDHCP = false;
    networkmanager.enable = false;
  };

  # disable all ipv6
  boot.kernel.sysctl = {
    "net.ipv6.conf.all.disable_ipv6" = 1;
    "net.ipv6.conf.default.disable_ipv6" = 1;
  };
}