mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-09 15:10:19 +02:00
added goober, say hello to goober
This commit is contained in:
parent
259aa1dd5e
commit
0035f0f1fa
36 changed files with 1708 additions and 269 deletions
18
hosts/goober/features/hardware/bluetooth.nix
Normal file
18
hosts/goober/features/hardware/bluetooth.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{config, pkgs, ...}: {
|
||||
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
||||
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
||||
services.blueman.enable = true;
|
||||
|
||||
systemd.user.services.mpris-proxy = {
|
||||
description = "Mpris proxy";
|
||||
after = [ "network.target" "sound.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
|
||||
};
|
||||
|
||||
hardware.bluetooth.settings = {
|
||||
General = {
|
||||
Experimental = true;
|
||||
};
|
||||
};
|
||||
}
|
7
hosts/goober/features/hardware/default.nix
Normal file
7
hosts/goober/features/hardware/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{config, ...}:
|
||||
{
|
||||
imports = [
|
||||
./bluetooth.nix
|
||||
./pipewire.nix
|
||||
];
|
||||
}
|
25
hosts/goober/features/hardware/pipewire.nix
Normal file
25
hosts/goober/features/hardware/pipewire.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{config, ...}:
|
||||
{
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# If you want to use JACK applications, uncomment this
|
||||
jack.enable = true;
|
||||
wireplumber.extraConfig."10-bluez" = {
|
||||
"monitor.bluez.properties" = {
|
||||
"bluez5.enable-sbc-xq" = true;
|
||||
"bluez5.enable-msbc" = true;
|
||||
"bluez5.enable-hw-volume" = true;
|
||||
"bluez5.roles" = [
|
||||
"hsp_hs"
|
||||
"hsp_ag"
|
||||
"hfp_hf"
|
||||
"hfp_ag"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue