2018-02-22 17:23:12 +00:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
networking.wireless.enable = lib.mkForce false;
|
|
|
|
|
|
|
|
systemd.services.modemmanager = {
|
|
|
|
description = "ModemManager";
|
|
|
|
after = [ "network-manager.service" ];
|
|
|
|
bindsTo = [ "network-manager.service" ];
|
|
|
|
wantedBy = [ "network-manager.service" ];
|
|
|
|
serviceConfig = {
|
|
|
|
ExecStart = "${pkgs.modemmanager}/bin/ModemManager";
|
|
|
|
PrivateTmp = true;
|
|
|
|
Restart = "always";
|
|
|
|
RestartSec = "5";
|
|
|
|
};
|
|
|
|
};
|
2018-04-05 15:36:19 +00:00
|
|
|
networking.networkmanager = {
|
2019-05-29 13:37:33 +00:00
|
|
|
ethernet.macAddress = "random";
|
|
|
|
wifi.macAddress = "random";
|
2018-04-05 15:36:19 +00:00
|
|
|
enable = true;
|
|
|
|
unmanaged = [
|
|
|
|
"docker*"
|
|
|
|
"vboxnet*"
|
|
|
|
];
|
|
|
|
};
|
2018-02-22 17:23:12 +00:00
|
|
|
users.users.mainUser = {
|
|
|
|
extraGroups = [ "networkmanager" ];
|
|
|
|
packages = with pkgs; [
|
|
|
|
gnome3.gnome_keyring gnome3.dconf
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|