push
This commit is contained in:
45
modules/beets.nix
Normal file
45
modules/beets.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
beets
|
||||
];
|
||||
|
||||
file.".config/beets/config.yaml".text = ''
|
||||
library: ~/.local/share/beets/library.db
|
||||
directory: ~/Music
|
||||
|
||||
import:
|
||||
write: true
|
||||
copy: true
|
||||
|
||||
plugins: [convert fetchart embedart fromfilename chroma smartplaylist]
|
||||
|
||||
paths:
|
||||
default: $artist/$album/$track
|
||||
|
||||
convert:
|
||||
auto: true
|
||||
format: opus
|
||||
formats:
|
||||
opus:
|
||||
command: ffmpeg -i $source -y -vn -c:a libopus -b:a 160k $dest
|
||||
extension: opus
|
||||
dest: ~/Music
|
||||
|
||||
fetchart:
|
||||
auto: yes
|
||||
ifempty: yes
|
||||
art_filename: folder
|
||||
|
||||
embedart:
|
||||
auto: yes
|
||||
|
||||
smartplaylist:
|
||||
playlist_dir: ~/Music/playlists
|
||||
relative_to: library
|
||||
output: extm3u
|
||||
'';
|
||||
};
|
||||
}
|
||||
0
modules/sish.nix
Normal file
0
modules/sish.nix
Normal file
Reference in New Issue
Block a user