aboutsummaryrefslogtreecommitdiff
path: root/share/system/spotifyd.nix
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2023-11-03 15:59:16 +0100
committerMiran Bastaja <miran.bastaja04@gmail.com>2023-11-03 15:59:16 +0100
commitf559671cae7b02526dedf7923b135c09e0d095d5 (patch)
tree0f273fb13211c4aa7cae2add41e3aa2b1c6d7785 /share/system/spotifyd.nix
Inital commit ;P
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";
+ };
+ };
+}