Add -E command-line flag to bluetoothd
This commit is contained in:
parent
06388135d2
commit
7c6b77cb1c
1 changed files with 15 additions and 8 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ emacs-overlay, nixpkgs }:
|
{ emacs-overlay, nixpkgs }:
|
||||||
{ config, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
|
|
@ -203,24 +203,31 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Hardware
|
||||||
|
|
||||||
|
# Enable sound.
|
||||||
|
sound.enable = true;
|
||||||
|
|
||||||
|
# Bluetooth
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
|
systemd.services.bluetooth.serviceConfig.ExecStart =
|
||||||
|
let args = [ "-f" "/etc/bluetooth/main.conf" "-E" ];
|
||||||
|
in lib.mkForce [ "" "${config.hardware.bluetooth.package}/libexec/bluetooth/bluetoothd ${lib.escapeShellArgs args}" ];
|
||||||
|
|
||||||
systemd.user.services.mpris-proxy = {
|
systemd.user.services.mpris-proxy = {
|
||||||
description = "Bluetooth mpris-player";
|
description = "Bluetooth mpris-player";
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
partOf = [ "graphical-session.target" ];
|
partOf = [ "graphical-session.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${pkgs.bluez}/bin/mpris-proxy
|
${config.hardware.bluetooth.package}/bin/mpris-proxy
|
||||||
'';
|
'';
|
||||||
RestartSec = 3;
|
RestartSec = 3;
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Hardware
|
|
||||||
# Enable sound.
|
|
||||||
sound.enable = true;
|
|
||||||
hardware.bluetooth.enable = true;
|
|
||||||
|
|
||||||
# UPower
|
# UPower
|
||||||
services.upower.enable = true;
|
services.upower.enable = true;
|
||||||
|
|
||||||
|
|
@ -275,7 +282,7 @@
|
||||||
backend = "glx";
|
backend = "glx";
|
||||||
vSync = true;
|
vSync = true;
|
||||||
};
|
};
|
||||||
systemd.user.services.picom.serviceConfig.Restart = pkgs.lib.mkForce "no";
|
systemd.user.services.picom.serviceConfig.Restart = lib.mkForce "no";
|
||||||
|
|
||||||
# xss-lock
|
# xss-lock
|
||||||
programs.xss-lock = {
|
programs.xss-lock = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue