2021-11-24 20:54:11 +01:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
# Blueooth support in general
|
|
|
|
|
hardware.bluetooth = {
|
|
|
|
|
enable = true;
|
|
|
|
|
powerOnBoot = false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Blueman applet
|
|
|
|
|
services.blueman.enable = true;
|
|
|
|
|
|
|
|
|
|
# aptx/LDAC support
|
|
|
|
|
hardware.pulseaudio = {
|
|
|
|
|
extraModules = [ pkgs.pulseaudio-modules-bt ];
|
|
|
|
|
package = pkgs.pulseaudioFull;
|
|
|
|
|
};
|
2021-11-24 21:32:56 +01:00
|
|
|
|
|
|
|
|
|
systemd.user.services.blueman-applet = {
|
|
|
|
|
description = "Blueman Applet";
|
|
|
|
|
after = [ "multi-user.target" ];
|
|
|
|
|
wantedBy = [ "default.target" ];
|
|
|
|
|
serviceConfig = {
|
|
|
|
|
Type = "simple";
|
|
|
|
|
ExecStart = "${blueman}/bin/blueman-applet";
|
|
|
|
|
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
|
|
|
|
KillMode = "process";
|
|
|
|
|
Restart = "on-failure";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2021-11-24 20:54:11 +01:00
|
|
|
|
}
|
|
|
|
|
|