1
0
mirror of https://github.com/kmein/niveum synced 2026-03-18 02:51:08 +01:00

fix(spotifyd): hand-craft spotifyd module

This commit is contained in:
2021-06-08 20:26:38 +02:00
parent d23d443cc5
commit d480eff8cd
2 changed files with 65 additions and 2 deletions

View File

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