Dmitriy Kholkin a75b704ae5 use spotifyd
2021-02-17 01:00:52 +03:00

26 lines
880 B
Nix

{ config, lib, pkgs, ... }: {
home-manager.users.alukard = {
# xdg.configFile."spicetify/Themes/base16/color.ini".source = ./color.ini;
# xdg.configFile."spicetify/Themes/base16/user.css".source = ./user.css;
services.spotifyd = {
enable = true;
package = (pkgs.spotifyd.override { withALSA = false; withPulseAudio = true; withPortAudio = false; });
settings = {
global = {
username = "${config.secrets.spotify.user}";
password = "${config.secrets.spotify.password}";
backend = "pulseaudio";
volume_controller = "softvol";
device_name = "nix";
bitrate = 320;
no_audio_cache = true;
volume_normalisation = false;
device_type = "computer";
cache_path = "${config.users.users.alukard.home}/.cache/spotifyd";
};
};
};
};
}