mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 17:46:14 +01:00
a5a651dbb9
Signed-off-by: main <magic_rb@redalder.org>
23 lines
549 B
Nix
23 lines
549 B
Nix
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
|
#
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.magic_rb.networking;
|
|
in {
|
|
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;
|
|
};
|
|
}
|