summaryrefslogtreecommitdiffstats
path: root/lass/2configs/network-manager.nix
blob: 3cdda198f968b3b71054a4f2511a527e71d950b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ pkgs, lib, ... }:
{
  networking.wireless.enable = lib.mkForce false;

  networking.networkmanager = {
    ethernet.macAddress = "random";
    wifi.macAddress = "random";
    enable = true;
    unmanaged = [
      "docker*"
      "vboxnet*"
    ];
  };
  users.users.mainUser = {
    extraGroups = [ "networkmanager" ];
    packages = with pkgs; [
      gnome3.gnome-keyring
      gnome3.dconf
    ];
  };
  environment.systemPackages = [
    pkgs.nm-dmenu
  ];
}