2018-02-06 10:55:12 +00:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
users.users.makefu = {
|
|
|
|
extraGroups = [ "networkmanager" ];
|
|
|
|
packages = with pkgs;[
|
|
|
|
networkmanagerapplet
|
|
|
|
gnome3.gnome_keyring gnome3.dconf
|
|
|
|
];
|
|
|
|
};
|
|
|
|
networking.wireless.enable = lib.mkForce false;
|
|
|
|
|
|
|
|
systemd.services.modemmanager = {
|
|
|
|
description = "ModemManager";
|
|
|
|
bindsTo = [ "network-manager.service" ];
|
2018-05-03 16:41:54 +00:00
|
|
|
wantedBy = [ "network-manager.service" "multi-user.target" ];
|
2018-02-06 10:55:12 +00:00
|
|
|
serviceConfig = {
|
|
|
|
ExecStart = "${pkgs.modemmanager}/bin/ModemManager";
|
|
|
|
PrivateTmp = true;
|
|
|
|
Restart = "always";
|
|
|
|
RestartSec = "5";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# nixOSUnstable
|
2020-01-10 07:41:33 +00:00
|
|
|
networking.networkmanager.enable = true;
|
2018-08-06 15:52:20 +00:00
|
|
|
networking.networkmanager.wifi = {
|
|
|
|
powersave = true;
|
|
|
|
scanRandMacAddress = true;
|
2020-01-10 07:41:33 +00:00
|
|
|
backend = "iwd";
|
2018-08-06 15:52:20 +00:00
|
|
|
};
|
2020-01-10 07:41:33 +00:00
|
|
|
services.gnome3.gnome-keyring.enable = true;
|
|
|
|
networking.wireless.iwd.enable = true;
|
|
|
|
|
2018-10-21 21:29:55 +00:00
|
|
|
state = [
|
|
|
|
"/etc/NetworkManager/system-connections" #NM stateful config files
|
|
|
|
];
|
2019-04-26 18:36:31 +00:00
|
|
|
networking.networkmanager.dispatcherScripts = [
|
2019-05-14 07:30:48 +00:00
|
|
|
{ source = "${pkgs.prison-break}/bin/prison-break"; }
|
2019-04-26 18:36:31 +00:00
|
|
|
];
|
2018-02-06 10:55:12 +00:00
|
|
|
}
|