nixos-config/modules/nixos/system/hardware/networking/default.nix
2024-04-04 19:31:55 +02:00

20 lines
348 B
Nix

{
options,
config,
lib,
pkgs,
...
}:
with lib;
with lib.wyrdgard;
let
cfg = config.wyrdgard.system.hardware.networking;
in
{
options.wyrdgard.system.hardware.networking = with types; {
enable = mkBoolOpt false "Whether or not to enable networking";
};
config = mkIf cfg.enable { networking.networkmanager.enable = true; };
}