summaryrefslogtreecommitdiffstats
path: root/lass/2configs/network-manager.nix
blob: b41cc7ac824d4fa55c48a7421e5b07b8c6bf08d3 (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
  ];
}