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