feat: mpdscribble
This commit is contained in:
@@ -18,30 +18,9 @@
|
||||
sops = {
|
||||
enable = true;
|
||||
keyFile = "/persist/user-files/${config.home.username}/key.txt";
|
||||
secrets = {
|
||||
lastfm-password = {};
|
||||
librefm-password = {};
|
||||
};
|
||||
};
|
||||
|
||||
mpd = {
|
||||
enable = true;
|
||||
scrobbling.endpoints = {
|
||||
"last.fm" = {
|
||||
passwordFile = config.sydnix.sops.secrets.lastfm-password.path;
|
||||
username = "crumb1";
|
||||
};
|
||||
"libre.fm" = {
|
||||
passwordFile = config.sydnix.sops.secrets.librefm-password.path;
|
||||
username = "crumbtoo";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = [
|
||||
];
|
||||
|
||||
# Don't touch!
|
||||
home.stateVersion = "18.09";
|
||||
};
|
||||
|
||||
28
users/crumb/programs/mpd.nix
Normal file
28
users/crumb/programs/mpd.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ 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" ];
|
||||
}
|
||||
Reference in New Issue
Block a user