nixos/modules/programs/spotify.nix

29 lines
554 B
Nix
Raw Normal View History

# Enabled when: desktop
{
config,
lib,
pkgs,
...
2025-12-13 21:41:52 +01:00
}: let
inherit (config.fireproof) username;
in {
config = lib.mkIf config.fireproof.desktop.enable {
environment.systemPackages = with pkgs; [
spotify
];
age.secrets.spotify-player = {
rekeyFile = ../../secrets/spotify-player.age;
path = "/home/${username}/.cache/spotify-player/credentials.json";
mode = "0600";
owner = username;
};
fireproof.home-manager = {
programs.spotify-player = {
enable = true;
};
};
};
}