Remove gpmusic

This commit is contained in:
Alexander Bantyev 2020-12-10 16:19:57 +03:00
parent eeac893163
commit a76e1a5ff3
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
4 changed files with 6 additions and 15 deletions

View File

@ -40,6 +40,8 @@ in {
yt-utilities = inputs.yt-utilities.defaultPackage.x86_64-linux;
# mopidy-youtube = super.mopidy-youtube.overrideAttrs (_: { src = inputs.mopidy-youtube; });
nerdfonts = nur.balsoft.pkgs.roboto-mono-nerd;
# inherit (inputs.nixpkgs-mesa.legacyPackages.x86_64-linux) sway mesa_drivers;

View File

@ -54,12 +54,6 @@ in rec {
description = "Mail server";
};
};
gpmusic = mkCredOption "Google Play Music (mopidy)" {
deviceid = mkOption {
type = str;
description = "Android device ID";
};
};
openvpn = mkCredOption "openvpn" { };
rclone = mkOption {
type = nullOr str;

View File

@ -2,15 +2,10 @@
{
services.mopidy = {
enable = true;
extensionPackages = with pkgs; [ mopidy-mpd mopidy-gmusic mopidy-youtube ];
configuration = (if (!isNull config.secrets.gpmusic) then ''
[gmusic]
username = ${config.secrets.gpmusic.user}
refresh_token = ${config.secrets.gpmusic.password}
deviceid = ${config.secrets.gpmusic.deviceid}
bitrate = 128
'' else
"") + ''
extensionPackages = with pkgs; [ mopidy-mpd mopidy-youtube ];
configuration = ''
[youtube]
enabled = true
[mpd]
hostname = 0.0.0.0
port = 6600

Binary file not shown.