ooknet/nixos/modules/base/networking/default.nix

29 lines
479 B
Nix

{
lib,
config,
...
}: let
inherit (lib) mkIf;
inherit (config.ooknet) host;
in {
imports = [
./firewall.nix
./tools.nix
./ssh.nix
./tcp.nix
./resolved.nix
./tailscale.nix
];
config = mkIf (host.type != "phone") {
networking.networkmanager = {
enable = true;
dns = "systemd-resolved";
};
systemd = {
network.wait-online.enable = false;
services.NetworkManager-wait-online.enable = false;
};
};
}