[spotifyd] Setup system-wide spotifyd

This commit is contained in:
2024-10-05 17:21:08 -07:00
parent 4620288747
commit 1a857399a6
4 changed files with 41 additions and 9 deletions

View File

@@ -186,15 +186,6 @@
package = pkgs.kdePackages.kdeconnect-kde;
};
services.spotifyd = {
enable = true;
settings = {
global = {
username = "johnogle222";
};
};
};
services.syncthing = {
enable = true;
tray = {

View File

@@ -19,6 +19,7 @@
kodi.enable = true;
nfs-mounts.enable = true;
printing.enable = true;
spotifyd.enable = true;
users = {
enable = true;
extraGroups = [ "input" "libvirtd" ];

View File

@@ -14,6 +14,7 @@ in
./nfs-mounts
./printing
./secrets
./spotifyd
./users
./virtualisation
];

View File

@@ -0,0 +1,39 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.roles.spotifyd;
in
{
options.roles.spotifyd = {
enable = mkEnableOption "Enable the spotifyd role";
};
config = {
roles.audio.enable = true;
services.spotifyd = {
enable = true;
settings = {
global = {
use_mpris = false;
backend = "alsa";
device = "sysdefault";
bitrate = 320;
cache_path = "";
zeroconf_port = 1234;
autoplay = false;
};
};
};
networking.firewall.allowedTCPPorts = [
1234
57621
];
networking.firewall.allowedUDPPorts = [
5353
];
};
}