spotify: added spotifyd support
This commit is contained in:
parent
68f2cd8fec
commit
38ee6a9cb9
|
@ -8,5 +8,33 @@ let
|
||||||
cfg = config.profile.spotify;
|
cfg = config.profile.spotify;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable { home.packages = with pkgs; [ spotify ]; };
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
(spotifywm.overrideAttrs {
|
||||||
|
version = "azurmeau-fork";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "amurzeau";
|
||||||
|
repo = "spotifywm";
|
||||||
|
rev = "b2222c9da47b278a3addef48250513420df405ac";
|
||||||
|
hash = "sha256-kRBOV2jPJ81xGEgCbSBcOo4Ie9FoK1kfxXMQG1vhHfM=";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
sops.secrets."spotifyd/password" = {
|
||||||
|
sopsFile = ../../secrets/spotify.yaml;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.spotifyd = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
global = {
|
||||||
|
use_keyring = false;
|
||||||
|
use_mpris = true;
|
||||||
|
device_type = "speaker";
|
||||||
|
device_name = "Spotifyd";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue