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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
# TODO: put somewhere else
|
|
|
|
services.xserver.displayManager.sessionCommands = ''
|
|
|
|
${pkgs.clipit}/bin/clipit &
|
|
|
|
${pkgs.networkmanagerapplet}/bin/nm-applet &
|
|
|
|
'';
|
|
|
|
|
|
|
|
# nixOSUnstable
|
|
|
|
# networking.networkmanager.wifi = {
|
|
|
|
# powersave = true;
|
|
|
|
# scanRandMacAddress = true;
|
|
|
|
# };
|
|
|
|
}
|