From 4d1a37c96bd5dbf31e543adad294edc0b0c3cae2 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 20 May 2023 07:43:36 +0200 Subject: Fix(system): Add configs for networkmanager only if it's enabled --- system/network/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'system/network/default.nix') diff --git a/system/network/default.nix b/system/network/default.nix index b613c76a..2a68d7ce 100644 --- a/system/network/default.nix +++ b/system/network/default.nix @@ -1,5 +1,10 @@ # vim: ts=2 -{config, ...}: { +{ + config, + lib, + ... +}: +{ systemd.network = { networks = { "tap0" = { @@ -40,3 +45,8 @@ }; }; } +// lib.mkIf config.networking.networkmanager.enable { + users.users.soispha.extraGroups = [ + "networkmanager" # allows to configure networkmanager as this user + ]; +} -- cgit 1.4.1