refactor(hardware): add options to module file
This commit is contained in:
parent
a9f0e4317a
commit
776f44f0bb
4 changed files with 26 additions and 25 deletions
29
system/modules/hardware/bluetooth/default.nix
Normal file
29
system/modules/hardware/bluetooth/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.systemModules.hardware.bluetooth;
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
options.systemModules.hardware.bluetooth = {
|
||||
enable = mkEnableOption "Enable bluetooth module";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
package = pkgs.bluez5-experimental;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
galaxy-buds-client
|
||||
live-buds-cli
|
||||
bluetuith
|
||||
];
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/issues/114222
|
||||
systemd.user.services.telephony_client.enable = false;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue