feat: add beets to manage my music library
This commit is contained in:
parent
90da9da0d5
commit
22114889a6
1 changed files with 18 additions and 0 deletions
18
modules/desktop/beets.nix
Normal file
18
modules/desktop/beets.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{config, ...}: {
|
||||
flake.modules.nixos.desktop = {pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [beets];
|
||||
};
|
||||
|
||||
flake.modules.homeManager.desktop = {
|
||||
programs.beets = {
|
||||
enable = true;
|
||||
settings = {
|
||||
directory = "/home/${config.flake.meta.user.name}/Music";
|
||||
import.move = true;
|
||||
import.copy = false;
|
||||
paths.default = "$albumartist/$album/$track $title";
|
||||
plugins = ["fetchart" "musicbrainz"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue