diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-23 15:24:20 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-23 15:24:20 -0600 |
| commit | 2e909f494dc6041b6bd5b8921b33808d0830d045 (patch) | |
| tree | 4049dd9886a2b845b94259ff40f0b99025eefa2c /modules/services/nixos | |
| parent | 674d6f4d3dc72859f00046db1747354f4a7ad47f (diff) | |
bluetooth and audio config
Diffstat (limited to 'modules/services/nixos')
| -rw-r--r-- | modules/services/nixos/audio.nix | 2 | ||||
| -rw-r--r-- | modules/services/nixos/bluetooth.nix | 25 |
2 files changed, 18 insertions, 9 deletions
diff --git a/modules/services/nixos/audio.nix b/modules/services/nixos/audio.nix index 8f2f23e..9de6787 100644 --- a/modules/services/nixos/audio.nix +++ b/modules/services/nixos/audio.nix @@ -17,5 +17,5 @@ in boot.blacklistedKernelModules = ["snd_seq_dummy"]; # remove extraneous alsa midi devices - environment.systemPackages = [pkgs.pwvucontrol]; + environment.systemPackages = with pkgs; [pwvucontrol qpwgraph]; } diff --git a/modules/services/nixos/bluetooth.nix b/modules/services/nixos/bluetooth.nix index bdcaa00..acf628c 100644 --- a/modules/services/nixos/bluetooth.nix +++ b/modules/services/nixos/bluetooth.nix @@ -1,5 +1,4 @@ { - pkgs, lib, config, ... @@ -10,22 +9,32 @@ in 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"; - ProtectHostname = true; - ProtectKernelTunables = lib.mkForce true; ProtectKernelLogs = true; ProtectKernelModules = lib.mkForce true; RestrictAddressFamilies = ["AF_UNIX" "AF_BLUETOOTH"]; ProtectClock = true; ProcSubset = "pid"; }; - - environment.systemPackages = [ - (lib.mkIf cfg.blueman.enable pkgs.blueman) - (lib.mkIf cfg.bluetuith.enable pkgs.bluetuith) - ]; } |
