summaryrefslogtreecommitdiffstats
path: root/lass/2configs/network-manager.nix
blob: ee69c6b1a01373a2e611d6cc646e8f930d635203 (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
25
{ pkgs, lib, ... }:
{
  networking.wireless.enable = lib.mkForce false;

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