1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 13:39:46 +01:00

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; cfg = config.services.spotifyd;
configFile = pkgs.writeText "spotifyd.conf" '' tomlFormat = pkgs.formats.toml { };
${generators.toINI { } cfg.settings}
''; configFile = tomlFormat.generate "spotifyd.conf" cfg.settings;
in { in {
options.services.spotifyd = { options.services.spotifyd = {
@ -27,7 +27,7 @@ in {
}; };
settings = mkOption { settings = mkOption {
type = types.attrsOf (types.attrsOf types.str); type = tomlFormat.type;
default = { }; default = { };
description = "Configuration for spotifyd"; description = "Configuration for spotifyd";
example = literalExample '' example = literalExample ''