From e6ac5843a3c9171b649711166f7aca41b0a73002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Sun, 31 Mar 2024 16:29:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(aurum/system)=20update=20networ?= =?UTF-8?q?king=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/aurum/system/networking/default.nix | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/hosts/aurum/system/networking/default.nix b/hosts/aurum/system/networking/default.nix index 2aee5e7..46ff6af 100644 --- a/hosts/aurum/system/networking/default.nix +++ b/hosts/aurum/system/networking/default.nix @@ -1,18 +1,17 @@ {...}: { - networking = { - # the name of the machine - hostName = "aurum"; + # the name of the machine + networking.hostName = "aurum"; - # domain name servers, use clouflare family - nameservers = ["1.1.1.2" "1.0.0.2"]; + # domain name servers, use clouflare family + networking.nameservers = ["1.1.1.2" "1.0.0.2"]; - # use networkManager, see nmcli - networkmanager.enable = true; + # firewall + networking.firewall.enable = true; - # firewall - firewall.enable = true; + # https://github.com/StevenBlack/hosts + networking.stevenblack.enable = true; - # https://github.com/StevenBlack/hosts - stevenblack.enable = true; - }; + # use networkManager, see nmcli + networking.networkmanager.enable = true; + users.users.laurent.extraGroups = ["networkmanager"]; }