feat(nixos): add networking module

This commit is contained in:
Mohammad Rafiq 2025-07-07 19:17:55 +08:00
parent 7881c76f73
commit d8aa7f62b4
No known key found for this signature in database
2 changed files with 24 additions and 11 deletions

View file

@ -0,0 +1,16 @@
{ lib, ... }:
let
inherit (lib.modules) mkDefault;
in
{
flake.modules.nixos.default =
{ hostName, ... }:
{
networking = {
inherit hostName;
enableIPv6 = false;
useDHCP = mkDefault true;
networkmanager.enable = true;
};
};
}