From f5882d157721ea971c0f68655edb173d5271f756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Mon, 7 Jun 2021 10:58:58 +0200 Subject: [PATCH] fix(spotifyd): config type --- configs/spotifyd.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/spotifyd.nix b/configs/spotifyd.nix index 350a825..0666627 100644 --- a/configs/spotifyd.nix +++ b/configs/spotifyd.nix @@ -1,8 +1,8 @@ -{ config, lib, ... }: +{ config, pkgs, lib, ... }: { services.spotifyd = { enable = true; - config = lib.generators.toINI { } { + config = builtins.readFile ((pkgs.formats.toml {}).generate "spotifyd.toml" { global = { username = lib.strings.fileContents ; password = lib.strings.fileContents ; @@ -11,7 +11,7 @@ device_type = "s_t_b"; # set-top box device_name = config.networking.hostName; }; - }; + }); }; # ref https://github.com/NixOS/nixpkgs/issues/71362#issuecomment-753461502