You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
911 B
Nix
36 lines
911 B
Nix
3 years ago
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
let
|
||
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||
|
annuaire = config.r6d.machines;
|
||
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||
|
flags = currentMachine.configurationFlags;
|
||
|
in
|
||
|
|
||
|
mkIf flags.pipewire {
|
||
|
|
||
|
# Paquets
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
helvum # patchbay pipewire
|
||
|
paprefs # préferences pulseaudio
|
||
|
pavucontrol # mixer pulseaudio
|
||
|
pa_applet # status et contrôle dans le system tray
|
||
|
];
|
||
|
|
||
|
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;
|
||
|
|
||
|
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||
|
# no need to redefine it in your config for now)
|
||
|
#media-session.enable = true;
|
||
|
};
|
||
|
|
||
|
}
|