aboutsummaryrefslogtreecommitdiff
path: root/share/system/spotifyd.nix
diff options
context:
space:
mode:
Diffstat (limited to 'share/system/spotifyd.nix')
-rw-r--r--share/system/spotifyd.nix13
1 files changed, 13 insertions, 0 deletions
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";
+ };
+ };
+}