spotify: initial commit

This commit is contained in:
Craige McWhirter 2021-03-29 08:08:21 +10:00
parent 415ca9a2fb
commit b873c47d3d
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

19
profiles/spotify.nix Normal file
View file

@ -0,0 +1,19 @@
# Spotify service configuration
{ config, pkgs, lib, ... }:
{
services.spotifyd = {
enable = true; # Enable the Spotify daemon.
config = "
username = ${pkgs.gnupg}/bin/gpg -q --for-your-eyes-only --no-tty -d ~/.spotify/userName.gpg
password_cmd = ${pkgs.gnupg}/bin/gpg -q --for-your-eyes-only --no-tty -d ~/.spotify/passwd.gpg
";
};
environment.systemPackages = with pkgs; [
spotify
];
}