diff --git a/sys/modules/bluetooth.nix b/sys/modules/bluetooth.nix new file mode 100644 index 0000000..28dbb01 --- /dev/null +++ b/sys/modules/bluetooth.nix @@ -0,0 +1,29 @@ +{ + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.local.sys.bluetooth; +in { + options.local.sys.bluetooth = { + enable = mkEnableOption "bluetooth settings"; + }; + config = mkIf cfg.enable { + hardware = { + bluetooth = { + enable = true; + settings = { + General = { + Enable = "Source,Sink,Media,Socket"; + }; + }; + }; + }; + + services = { + blueman.enable = true; + }; + }; +} diff --git a/sys/modules/default.nix b/sys/modules/default.nix index 0696df5..2f2bccf 100644 --- a/sys/modules/default.nix +++ b/sys/modules/default.nix @@ -12,5 +12,6 @@ ./virtualisation.nix ./android.nix ./users.nix + ./bluetooth.nix ]; }