tweak mopidy config

This commit is contained in:
Nathan McCarty 2022-02-07 11:54:38 -05:00
parent 36f39d7e89
commit cba59ec38d
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 9 additions and 1 deletions

View File

@ -7,6 +7,7 @@ let
mopidy-mpd mopidy-mpd
mopidy-iris mopidy-iris
mopidy-scrobbler mopidy-scrobbler
mopidy-local
]; ];
pathsToLink = [ "/${pkgs.mopidyPackages.python.sitePackages}" ]; pathsToLink = [ "/${pkgs.mopidyPackages.python.sitePackages}" ];
buildInputs = [ pkgs.makeWrapper ]; buildInputs = [ pkgs.makeWrapper ];
@ -63,6 +64,9 @@ let
#follow_symlinks = false #follow_symlinks = false
#metadata_timeout = 1000 #metadata_timeout = 1000
[local]
media_dir = /home/nathan/Music
[http] [http]
#enabled = true #enabled = true
#hostname = 127.0.0.1 #hostname = 127.0.0.1
@ -112,6 +116,10 @@ in
nicotine-plus nicotine-plus
# Mopidy + extensions # Mopidy + extensions
mopidy mopidy
mopidy-mpd
mopidy-iris
mopidy-scrobbler
mopidy-local
# Picard for sorting # Picard for sorting
unstable.picard unstable.picard
]; ];
@ -125,7 +133,7 @@ in
# So we can pick up the fusermount wrapper, this is a less than ideal way to do this # So we can pick up the fusermount wrapper, this is a less than ideal way to do this
Environment = "PATH=/usr/bin:/run/wrappers/bin/"; Environment = "PATH=/usr/bin:/run/wrappers/bin/";
Type = "notify"; Type = "notify";
ExecStart = "${pkgs.rclone}/bin/rclone mount music: /home/nathan/Music --vfs-cache-mode full --vfs-cache-max-size 32Gi --vfs-read-chunk-size 4Mi --buffer-size 32Mi --vfs-read-ahead 128Mi --config /home/nathan/.config/rclone/rclone.conf --cache-dir /home/nathan/.cache/rclone --no-checksum --no-modtime --transfers 8"; ExecStart = "${pkgs.rclone}/bin/rclone mount music: /home/nathan/Music --vfs-cache-mode writes --vfs-cache-max-size 32Gi --vfs-read-chunk-size 4Mi --buffer-size 32Mi --vfs-read-ahead 128Mi --config /home/nathan/.config/rclone/rclone.conf --cache-dir /home/nathan/.cache/rclone --no-checksum --no-modtime --transfers 16";
}; };
enable = true; enable = true;
}; };