1
1
Fork 0
nixos/options/custom/settings/hardware.nix

18 lines
363 B
Nix
Raw Normal View History

{ config, lib, ... }:
with lib;
let
cfg = config.custom.settings.hardware;
in
{
options.custom.settings.hardware.enable = mkOption { default = false; };
config.hardware = mkIf cfg.enable {
enableAllFirmware = config.custom.default; # Non-free firmware
# https://wiki.nixos.org/wiki/Bluetooth
bluetooth.enable = config.custom.minimal;
};
}