nichts/modules/system/hardware/bluetooth.nix
Bloxx12 53aaa26fa1 flake: inherit explicitly from parts of lib
Instead of doing `inherit (lib) <something>``, all inherits now use
`inherit (lib.<subsystem>) <something>`, which is much nicer.
2025-04-09 16:13:31 +02:00

25 lines
413 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (lib.modules) mkIf;
cfg = config.modules.system.hardware.bluetooth;
in {
config = mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
powerOnBoot = mkIf cfg.powerOnBoot true;
};
environment.systemPackages = builtins.attrValues {
inherit
(pkgs)
bluetuith
bluez
blueman
;
};
};
}