mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 19:46:17 +01:00
17 lines
426 B
Nix
17 lines
426 B
Nix
|
{ 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;
|
||
|
};
|
||
|
}
|