From f559671cae7b02526dedf7923b135c09e0d095d5 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Fri, 3 Nov 2023 15:59:16 +0100 Subject: Inital commit ;P --- share/system/spotifyd.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 share/system/spotifyd.nix (limited to 'share/system/spotifyd.nix') diff --git a/share/system/spotifyd.nix b/share/system/spotifyd.nix new file mode 100644 index 0000000..5e04898 --- /dev/null +++ b/share/system/spotifyd.nix @@ -0,0 +1,13 @@ +{ config, ... }: +let secrets = config.sops.secrets; +in { + services.spotifyd = { + enable = true; + settings.global = { + username_cmd = "cat ${secrets."spotify/username".path}"; + password_cmd = "cat ${secrets."spotify/password".path}"; + device_name = "nixos_${config.networking.hostName}"; + device_type = "computer"; + }; + }; +} -- cgit v1.3.1