shairport service working

systemd service works now ig
This commit is contained in:
2025-10-18 20:31:22 -04:00
parent 50c62a4d3f
commit 48edbfdc4b
2 changed files with 12 additions and 3 deletions

View File

@@ -18,7 +18,7 @@
in {
imports = [
(import ../../apps/flatpak.nix {
inherit lib pkgs flatpakPackages;
inherit lib pkgs flatpakPackages userName;
})
../../apps/gaming.nix
../../apps/appimage.nix

View File

@@ -1,7 +1,16 @@
{pkgs, ...}: {
{ lib, pkgs, userName, ...}: {
services.shairport-sync = {
enable = pkgs.stdenv.isLinux;
openFirewall = pkgs.stdenv.isLinux;
arguments = "-v -o pa";
# arguments = "-v -o pa";
};
systemd.services.shairport-sync = {
serviceConfig = {
User = lib.mkForce "${userName}";
};
environment = {
XDG_RUNTIME_DIR = "/run/user/1000";
};
};
}