2016-08-12 12:46:36 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2016-08-09 13:36:34 +02:00
|
|
|
|
|
|
|
|
let
|
2016-08-12 12:46:36 +02:00
|
|
|
inherit (lib) mkIf mkMerge mkThenElse;
|
2017-04-24 23:22:11 +02:00
|
|
|
annuaire = config.r6d.machines;
|
2021-05-06 23:50:07 +02:00
|
|
|
currentMachine = annuaire."${config.networking.fqdn}";
|
2017-05-31 00:23:10 +02:00
|
|
|
flags = currentMachine.configurationFlags;
|
2016-08-09 13:36:34 +02:00
|
|
|
in
|
|
|
|
|
|
2017-04-27 22:06:12 +02:00
|
|
|
mkIf flags.pulseaudio {
|
2016-08-12 12:46:36 +02:00
|
|
|
|
2017-11-08 21:36:26 +01:00
|
|
|
# Notes
|
|
|
|
|
# commande pour lister les cartes son : pacmd list-cards
|
|
|
|
|
|
2017-07-05 22:11:49 +02:00
|
|
|
# Paquets
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
paprefs # préferences pulseaudio
|
|
|
|
|
pavucontrol # mixer pulseaudio
|
2019-06-23 19:13:23 +02:00
|
|
|
pa_applet # status et contrôle dans le system tray
|
2017-07-05 22:11:49 +02:00
|
|
|
];
|
|
|
|
|
|
2016-08-09 13:36:34 +02:00
|
|
|
# Pulse Audio
|
2016-08-12 12:46:36 +02:00
|
|
|
hardware.pulseaudio = {
|
2016-08-09 13:36:34 +02:00
|
|
|
enable = true;
|
|
|
|
|
support32Bit = true;
|
2017-01-17 13:09:49 +01:00
|
|
|
daemon.config = { flat-volumes = "no"; };
|
2016-08-09 13:36:34 +02:00
|
|
|
};
|
|
|
|
|
}
|