From e79a5d7cde768a3690e448758e7bae5966eba52b Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Tue, 24 Sep 2024 10:18:41 +0200 Subject: [PATCH] Add user to networkmanager group --- system/shared/network.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/shared/network.nix b/system/shared/network.nix index 6bc0e9e..a570070 100644 --- a/system/shared/network.nix +++ b/system/shared/network.nix @@ -1,4 +1,6 @@ -{lib, ...}: { +{config, ...}: let + cfgUser = config.myOptions.system.username; +in { networking = { firewall.enable = false; @@ -15,4 +17,6 @@ "2620:fe::fe" ]; }; + + users.extraGroups.networkmanager.members = ["${cfgUser}"]; }