2018-02-06 11:55:12 +01:00
|
|
|
{ pkgs, lib, ... }:
|
2019-05-09 08:42:23 +02:00
|
|
|
let
|
|
|
|
prison-break = pkgs.callPackage ../../../krebs/5pkgs/simple/prison-break {};
|
|
|
|
in
|
2018-02-06 11:55:12 +01:00
|
|
|
{
|
|
|
|
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 18:41:54 +02:00
|
|
|
wantedBy = [ "network-manager.service" "multi-user.target" ];
|
2018-02-06 11:55:12 +01:00
|
|
|
serviceConfig = {
|
|
|
|
ExecStart = "${pkgs.modemmanager}/bin/ModemManager";
|
|
|
|
PrivateTmp = true;
|
|
|
|
Restart = "always";
|
|
|
|
RestartSec = "5";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
# nixOSUnstable
|
2018-08-06 17:52:20 +02:00
|
|
|
networking.networkmanager.wifi = {
|
|
|
|
powersave = true;
|
|
|
|
scanRandMacAddress = true;
|
|
|
|
};
|
2018-10-21 23:29:55 +02:00
|
|
|
state = [
|
|
|
|
"/etc/NetworkManager/system-connections" #NM stateful config files
|
|
|
|
];
|
2019-04-26 20:36:31 +02:00
|
|
|
networking.networkmanager.dispatcherScripts = [
|
2019-05-09 08:42:23 +02:00
|
|
|
{ source = "${prison-break}/bin/prison-break"; }
|
2019-04-26 20:36:31 +02:00
|
|
|
];
|
2018-02-06 11:55:12 +01:00
|
|
|
}
|