ctucx.git: nixfiles

ctucx' nixfiles

commit 3fc3157e66fa3040f6fbbb3d3e7176bc93b952e0
parent 1e5ea074ef2a92d8448b5b2550aa606f764c8d2d
Author: Leah (ctucx) <leah@ctu.cx>
Date: Mon, 24 Jan 2022 21:12:51 +0100

programs/spotifyd: use secrets-file
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/configurations/programs/spotifyd.nix b/configurations/programs/spotifyd.nix
@@ -1,6 +1,9 @@
 { pkgs, ... }:
 
-{
+let
+  secrets = import ../../secrets;
+
+in {
   networking.firewall.allowedUDPPorts = [ 57621 ];
   networking.firewall.allowedTCPPorts = [ 33903 57621 ];
 

@@ -9,7 +12,9 @@
       enable   = true;
       settings = {
         global = {
-          #todo: find something to manage secrets
+          username       = secrets.spotifyd.username;
+          password       = secrets.spotifyd.password;
+
           use_mpris      = true;
           backend        = "pulseaudio";
           bitrate        = 320;