Remove version lock for shairport-sync

The current version in nixpkgs is newer than the one we are currently locking, the nqptp fix was also already in nixpkgs.

Co-authored-by: c6ristian <c6ristian@christian.moe>
This commit is contained in:
jopejoe1 2024-11-02 22:39:24 +01:00 committed by c6ristian
parent 9d9b8ede02
commit af7fc33d66
Signed by: c6ristian
SSH key fingerprint: SHA256:B3m+yzpaxGXSEcDBpPHfvza/DNC0wuX+CKMeGq8wgak
5 changed files with 4 additions and 53 deletions

View file

@ -12,7 +12,6 @@ in
imports = [
./librespot.nix
./mpd.nix
./networking.nix
./pipewire.nix
./shairport-sync.nix
];

View file

@ -23,7 +23,7 @@ in
After = [ "network-online.target" "pipewire.service" ];
};
serviceConfig = {
ExecStart = "${pkgs.librespot}/bin/librespot --name '${config.ccchh.services.audio.name}' --device-type speaker --bitrate 320 --enable-volume-normalisation --disable-audio-cache --disable-credential-cache --quiet";
ExecStart = "${pkgs.librespot}/bin/librespot --name '${config.ccchh.services.audio.name}' --device-type speaker --bitrate 320 --enable-volume-normalisation --disable-audio-cache --disable-credential-cache";
User = "librespot";
Group = "librespot";
};
@ -34,7 +34,7 @@ in
users.librespot = {
isSystemUser = true;
group = "librespot";
extraGroups = [ "pipewire" ];
extraGroups = [ "pipewire" "audio" ];
};
groups.librespot = { };
};

View file

@ -1,16 +0,0 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.ccchh.services.audio;
in
{
config = mkIf cfg.enable {
# Disable IPv6, since Shairport-Sync doesn't work with IPv6. Unclear why.
networking.enableIPv6 = false;
};
}

View file

@ -20,7 +20,7 @@ in
arguments = "-o pw -v";
};
users.users.shairport.extraGroups = [ "pipewire" ];
users.users.shairport.extraGroups = [ "pipewire" "audio" ];
environment.etc.shairport-sync-config = {
enable = true;