1
0
mirror of https://github.com/kmein/niveum synced 2026-03-22 04:41:07 +01:00

fix(spotifyd): config type

This commit is contained in:
2021-06-07 10:58:58 +02:00
parent 39917e0bf6
commit f5882d1577

View File

@@ -1,8 +1,8 @@
{ config, lib, ... }: { config, pkgs, lib, ... }:
{ {
services.spotifyd = { services.spotifyd = {
enable = true; enable = true;
config = lib.generators.toINI { } { config = builtins.readFile ((pkgs.formats.toml {}).generate "spotifyd.toml" {
global = { global = {
username = lib.strings.fileContents <secrets/spotify/username>; username = lib.strings.fileContents <secrets/spotify/username>;
password = lib.strings.fileContents <secrets/spotify/password>; password = lib.strings.fileContents <secrets/spotify/password>;
@@ -11,7 +11,7 @@
device_type = "s_t_b"; # set-top box device_type = "s_t_b"; # set-top box
device_name = config.networking.hostName; device_name = config.networking.hostName;
}; };
}; });
}; };
# ref https://github.com/NixOS/nixpkgs/issues/71362#issuecomment-753461502 # ref https://github.com/NixOS/nixpkgs/issues/71362#issuecomment-753461502