nixos-config/modules/programs/music/default.nix

29 lines
624 B
Nix
Raw Normal View History

2021-08-31 16:01:29 +00:00
{ config, pkgs, ... }:
2021-07-29 20:21:51 +00:00
2021-08-31 16:01:29 +00:00
let
secrets = import ../../../secrets;
funkwhale = secrets.funkwhale.applications."${config.networking.hostName}";
in {
config = {
environment.systemPackages = with pkgs; [ cantata ];
2021-07-29 20:21:51 +00:00
2021-08-31 16:01:29 +00:00
services.mopidy = {
#enable = true;
configuration = ''
[funkwhale]
enabled = true
url = https://audio.polynom.me
client_id = ${funkwhale.client_id}
client_secret = ${funkwhale.client_secret}
cache_duration = 600
[mpd]
enabled = true;
2021-07-29 20:21:51 +00:00
'';
2021-08-31 16:01:29 +00:00
extensionPackages = with pkgs; [
mopidy-mpd mopidy-funkwhale
];
};
2021-07-29 20:21:51 +00:00
};
}