1
0
Fork 0

Install pipewire

This commit is contained in:
Malte Brandy 2021-06-20 15:40:01 +02:00
parent c2aaacd413
commit b0c8f6f711
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
2 changed files with 23 additions and 12 deletions

View file

@ -6,8 +6,7 @@
extraConfig = ''
audio_output {
type "pulse"
name "Pulseaudio"
server "localhost"
name "Pipewire"
}
'';
};

View file

@ -36,15 +36,17 @@ in
allowedIPsAsRoutes = false;
ips = [ "${hosts.apollo-wg}/112" ];
privateKeyFile = pkgs.privatePath "wireguard/apollo-private";
peers = [{
publicKey = wireguard.pub.hera;
allowedIPs = [ "::/0" ];
# endpoint =
# "[${hosts.hera-wg-host}]:${builtins.toString wireguard.port}";
endpoint = "[${hosts.hera-v4}]:${builtins.toString wireguard.port}";
presharedKeyFile = pkgs.privatePath "wireguard/psk";
persistentKeepalive = 25;
}];
peers = [
{
publicKey = wireguard.pub.hera;
allowedIPs = [ "::/0" ];
# endpoint =
# "[${hosts.hera-wg-host}]:${builtins.toString wireguard.port}";
endpoint = "[${hosts.hera-v4}]:${builtins.toString wireguard.port}";
presharedKeyFile = pkgs.privatePath "wireguard/psk";
persistentKeepalive = 25;
}
];
postSetup =
[ "${pkgs.iproute}/bin/ip route add ${prefix}::/96 dev m0wire" ];
};
@ -65,8 +67,18 @@ in
dconf.enable = true;
};
security.rtkit.enable = true;
services = {
#teamviewer.enable = true;
pipewire = {
enable = true;
alsa = {
enable = true;
support32Bit = true;
};
pulse.enable = true;
media-session.enable = true;
};
fwupd.enable = true;
upower.enable = true;
printing = {
@ -141,7 +153,7 @@ in
driSupport32Bit = true; # for gw2
};
pulseaudio = {
enable = true;
enable = false;
support32Bit = true;
tcp = {
enable = true;