This commit is contained in:
4DBug
2026-02-11 20:39:35 -06:00
parent 90f94f7888
commit 66230cbc4f
2 changed files with 45 additions and 0 deletions

45
modules/beets.nix Normal file
View 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
View File