dotfiles/modules/os/core/networking/default.nix

28 lines
543 B
Nix
Raw Normal View History

{ config, lib, ... }:
let
cfg = config.my.networking;
in {
imports = [
./cloudflare-warp.nix
./eddie.nix
./i2p.nix
];
options.my.networking = {
networkManager.enable = lib.mkEnableOption null;
};
config = lib.mkIf cfg.networkManager.enable {
networking.networkmanager = {
enable = true;
wifi = {
scanRandMacAddress = lib.mkDefault false;
};
};
systemd.services.NetworkManager-wait-online.enable = lib.mkDefault false;
my.user.extraGroups = [ "networkmanager" ];
};
}