Files
sydnix/users/crumb/programs/mpd.nix
Madeleine Sydney 1870ca57c9 feat: mpdscribble
2025-01-02 06:32:48 -07:00

29 lines
717 B
Nix

{ config, lib, pkgs, ... }:
{
sydnix.sops.secrets = {
lastfm-password = {};
librefm-password = {};
};
sydnix.mpd = {
enable = true;
scrobbling.endpoints = {
"last.fm" = {
passwordFile =
"/home/crumb/.config/sops-nix/secrets/lastfm-password";
username = "crumb1";
};
"libre.fm" = {
passwordFile =
"/home/crumb/.config/sops-nix/secrets/librefm-password";
username = "crumbtoo";
};
};
};
# mpdscribble uses our password files, so it is imperative that the service
# runs only after said password files are brought into existence. }:)
systemd.user.services.mpdscribble.Unit.After = [ "sops-nix.service" ];
}