2022-07-31 11:03:59 +02:00
|
|
|
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
2021-04-11 00:25:36 +02:00
|
|
|
{
|
2022-07-31 11:03:59 +02:00
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.magic_rb.networking;
|
|
|
|
in {
|
2021-04-11 00:25:36 +02:00
|
|
|
options.magic_rb.networking = {
|
|
|
|
networkManager = mkEnableOption "Whether to enable Network Manager, usefull on laptops.";
|
|
|
|
bluetooth = mkEnableOption "Whether to enable bluetooth.";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
|
|
|
networking.networkmanager.enable = mkIf cfg.networkManager true;
|
|
|
|
hardware.bluetooth.enable = mkIf cfg.bluetooth true;
|
|
|
|
};
|
|
|
|
}
|