f4565688f6
Note: not the actual initial commit. I swear I will stop repeatedly force pushing to this single commit eventually ok.
28 lines
543 B
Nix
28 lines
543 B
Nix
{ 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" ];
|
|
};
|
|
}
|