mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 13:39:46 +01:00
parent
db88b625f9
commit
7313258b45
1 changed files with 4 additions and 4 deletions
|
@ -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 ''
|
||||||
|
|
Loading…
Reference in a new issue