NixOS/home/programs/spotify.nix

41 lines
806 B
Nix
Raw Normal View History

{
pkgs,
config,
lib,
...
}:
2024-06-12 18:09:56 +07:00
let
cfg = config.profile.spotify;
in
{
2024-11-11 12:25:18 +07:00
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";
};
};
};
};
2024-06-12 18:09:56 +07:00
}