spotifyd: change config format to toml

Fixes #1754
This commit is contained in:
Jack McCown 2021-01-29 13:44:03 -05:00 committed by Robert Helgesson
parent db88b625f9
commit 7313258b45
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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 ''