From 7b63660bbc6306360dcb21378bb9a5184eddeb09 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Fri, 28 Feb 2020 15:52:37 +0100 Subject: [PATCH] Switch to networkmanager --- machines/oldtown/default.nix | 9 +-------- machines/pentos/default.nix | 9 +-------- profiles/graphical/default.nix | 9 ++++++++- 3 files changed, 10 insertions(+), 17 deletions(-) diff --git a/machines/oldtown/default.nix b/machines/oldtown/default.nix index 543f225a..a689a861 100644 --- a/machines/oldtown/default.nix +++ b/machines/oldtown/default.nix @@ -14,14 +14,7 @@ efi.canTouchEfiVariables = true; }; - networking = { - hostName = "oldtown"; - wireless.enable = true; - interfaces = { - enp0s31f6.useDHCP = true; - wlp2s0.useDHCP = true; - }; - }; + networking.hostName = "oldtown"; time.timeZone = "Europe/Brussels"; diff --git a/machines/pentos/default.nix b/machines/pentos/default.nix index 1d4b4f6c..3d36547c 100644 --- a/machines/pentos/default.nix +++ b/machines/pentos/default.nix @@ -14,14 +14,7 @@ efi.canTouchEfiVariables = true; }; - networking = { - hostName = "pentos"; - wireless.enable = true; - interfaces = { - enp0s31f6.useDHCP = true; - wlp0s20f3.useDHCP = true; - }; - }; + networking.hostName = "pentos"; time.timeZone = "Europe/Brussels"; diff --git a/profiles/graphical/default.nix b/profiles/graphical/default.nix index 40afcf30..f985b727 100644 --- a/profiles/graphical/default.nix +++ b/profiles/graphical/default.nix @@ -40,9 +40,15 @@ ]; }; + networking.networkmanager = { + enable = true; + packages = [ pkgs.networkmanager-vpnc ]; + wifi.macAddress = "random"; + }; + virtualisation.docker.enable = true; - users.users.charlotte.extraGroups = [ "docker" "video" "input" ]; + users.users.charlotte.extraGroups = [ "docker" "video" "input" "networkmanager" ]; environment.systemPackages = with pkgs; [ eid-mw ]; @@ -60,6 +66,7 @@ libreoffice moreutils mpv + networkmanagerapplet okular pavucontrol (