stockholm/lass/2configs/network-manager.nix

37 lines
838 B
Nix
Raw Normal View History

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";
};
};
networking.networkmanager = {
ethernet.macAddress = "random";
wifi.macAddress = "random";
enable = true;
unmanaged = [
"docker*"
"vboxnet*"
];
};
2018-02-22 17:23:12 +00:00
users.users.mainUser = {
extraGroups = [ "networkmanager" ];
packages = with pkgs; [
2020-04-18 12:59:17 +00:00
gnome3.gnome_keyring
gnome3.dconf
2018-02-22 17:23:12 +00:00
];
};
2020-04-18 12:59:17 +00:00
environment.systemPackages = [
pkgs.nm-dmenu
];
2018-02-22 17:23:12 +00:00
}