mio-ops/profiles/spotify.nix

17 lines
461 B
Nix
Raw Permalink Normal View History

2021-03-28 22:08:21 +00:00
# Spotify service configuration
{
2022-03-07 14:26:15 +00:00
config,
pkgs,
lib,
...
}: {
2021-03-28 22:08:21 +00:00
services.spotifyd = {
2021-12-30 00:36:20 +00:00
enable = false; # Enable the Spotify daemon.
2022-03-07 14:26:15 +00:00
config = "\n username = ${pkgs.gnupg}/bin/gpg -q --for-your-eyes-only --no-tty -d ~/.spotify/userName.gpg\n password_cmd = ${pkgs.gnupg}/bin/gpg -q --for-your-eyes-only --no-tty -d ~/.spotify/passwd.gpg\n ";
2021-03-28 22:08:21 +00:00
};
2022-03-07 14:26:15 +00:00
environment.systemPackages = with pkgs; [
ncspot # ncurses Spotify client
];
2021-03-28 22:08:21 +00:00
}