diff options
Diffstat (limited to 'modules/services/nixos/bluetooth.nix')
| -rw-r--r-- | modules/services/nixos/bluetooth.nix | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/modules/services/nixos/bluetooth.nix b/modules/services/nixos/bluetooth.nix deleted file mode 100644 index acf628c..0000000 --- a/modules/services/nixos/bluetooth.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ - lib, - config, - ... -}: let - cfg = config.collinux.services.bluetooth; -in - lib.mkIf cfg.enable { - hardware.bluetooth = { - enable = true; - powerOnBoot = true; - - settings.General = { - FastConnectable = true; - ControllerMode = "bredr"; - JustWorksRepairing = "always"; - }; - }; - - systemd.user.services."mpris-proxy" = { - unitConfig = { - BindsTo = ["bluetooth.target"]; - After = ["bluetooth.target"]; - }; - - wantedBy = ["bluetooth.target"]; - - # serviceConfig already exists (?) - }; - - # hardening (down to 2.1 OK) - systemd.services."bluetooth".serviceConfig = { - IPAddressDeny = "any"; - ProtectKernelLogs = true; - ProtectKernelModules = lib.mkForce true; - RestrictAddressFamilies = ["AF_UNIX" "AF_BLUETOOTH"]; - ProtectClock = true; - ProcSubset = "pid"; - }; - } |
