feat(spotifyd): Enable spotifyd module to play music in background
This commit is contained in:
parent
d9aecce780
commit
3fba87b4b1
8 changed files with 101 additions and 0 deletions
|
|
@ -35,6 +35,7 @@
|
|||
kvm.enable = true;
|
||||
atuin.enable = true;
|
||||
ion.enable = true;
|
||||
spotifyd.enable = true;
|
||||
awscli = {
|
||||
enable = true;
|
||||
url = "http://localhost:8491";
|
||||
|
|
|
|||
25
home/modules/programs/spotifyd.nix
Normal file
25
home/modules/programs/spotifyd.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue