From 7313258b45f2da898e3f23fed8a42e1b6ef19e9d Mon Sep 17 00:00:00 2001 From: Jack McCown Date: Fri, 29 Jan 2021 13:44:03 -0500 Subject: [PATCH] spotifyd: change config format to toml Fixes #1754 --- modules/services/spotifyd.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/services/spotifyd.nix b/modules/services/spotifyd.nix index dfe0ecd3..ee5af345 100644 --- a/modules/services/spotifyd.nix +++ b/modules/services/spotifyd.nix @@ -6,9 +6,9 @@ let cfg = config.services.spotifyd; - configFile = pkgs.writeText "spotifyd.conf" '' - ${generators.toINI { } cfg.settings} - ''; + tomlFormat = pkgs.formats.toml { }; + + configFile = tomlFormat.generate "spotifyd.conf" cfg.settings; in { options.services.spotifyd = { @@ -27,7 +27,7 @@ in { }; settings = mkOption { - type = types.attrsOf (types.attrsOf types.str); + type = tomlFormat.type; default = { }; description = "Configuration for spotifyd"; example = literalExample ''