Bluetooth
This commit is contained in:
parent
77f5c691a3
commit
53a5840d64
4 changed files with 21 additions and 1 deletions
|
@ -5,5 +5,6 @@ _: {
|
|||
../../../options/common/networking.nix
|
||||
../../../options/common/pin-registry.nix
|
||||
../../../options/common/preserve-system.nix
|
||||
../../../options/common/bluetooth.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -6,5 +6,6 @@ _: {
|
|||
../../../options/common/gpu/nvidia.nix
|
||||
../../../options/common/pin-registry.nix
|
||||
../../../options/common/preserve-system.nix
|
||||
../../../options/common/bluetooth.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -59,7 +59,6 @@ in {
|
|||
swww
|
||||
toipe
|
||||
keepassxc
|
||||
bluetuith
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
19
options/common/bluetooth.nix
Normal file
19
options/common/bluetooth.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
username = config.modules.other.system.username;
|
||||
in {
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
};
|
||||
|
||||
services.blueman.enable = true;
|
||||
|
||||
# Bluetooth headset media control buttons
|
||||
systemd.user.services.mpris-proxy = {
|
||||
description = "Mpris proxy";
|
||||
after = [ "network.target" "sound.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue