feat(spotifyd): Enable spotifyd module to play music in background

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent d9aecce780
commit 3fba87b4b1
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
8 changed files with 101 additions and 0 deletions

View file

@ -35,6 +35,7 @@
kvm.enable = true;
atuin.enable = true;
ion.enable = true;
spotifyd.enable = true;
awscli = {
enable = true;
url = "http://localhost:8491";

View file

@ -0,0 +1,25 @@
{ config, lib, ... }:
let
cfg = config.youthlic.programs.spotifyd;
in
{
options = {
youthlic.programs.spotifyd = {
enable = lib.mkEnableOption "spotifyd";
};
};
config = lib.mkIf cfg.enable {
services.spotifyd = {
enable = true;
settings = {
global = {
device_type = "computer";
use_mpris = true;
backend = "pulseaudio";
bitrate = 320;
autoplay = false;
};
};
};
};
}