commit 81dcaf1e3ede90373929bd3de8d72fed58c43a6c
parent fcf89d2e6c8622b06563db1f5679751698809f9d
Author: breadcat <breadcat@users.noreply.github.com>
Date: Wed, 4 Mar 2026 15:48:52 +0000
Add navidrome and beets to NAS
Diffstat:
3 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/common/roles/navidrome.nix b/common/roles/navidrome.nix
@@ -0,0 +1,10 @@
+{
+ services.navidrome = {
+ enable = true;
+ openFirewall = true;
+ settings = {
+ Address = "0.0.0.0";
+ MusicFolder = "/tank/media/audio/music";
+ };
+ };
+}
diff --git a/home/beets.nix b/home/beets.nix
@@ -0,0 +1,26 @@
+{
+ programs.beets = {
+ enable = true;
+ settings = {
+ directory = "/tank/media/audio/music";
+ library = "/tank/media/audio/music/beets.db";
+ threaded = "yes";
+ plugins = [ "musicbrainz" "scrub" ];
+ ui = {
+ color = "yes";
+ };
+ import = {
+ write = true;
+ copy = false;
+ move = true;
+ };
+ paths = {
+ default = "$albumartist/$year $album/$track $title";
+ singleton = "$albumartist/$year $album - $title";
+ };
+ scrub = {
+ auto = true;
+ };
+ };
+ };
+}
diff --git a/machines/ilias.nix b/machines/ilias.nix
@@ -16,6 +16,7 @@ let machine = "ilias"; in {
../common/networking.nix
../common/nfs-server.nix
../common/packages.nix
+ ../common/roles/navidrome.nix
../common/ssh.nix
../common/ssh-tunnel.nix
../common/stromboli.nix
@@ -46,6 +47,7 @@ let machine = "ilias"; in {
../scripts/youtube-id-rss.nix
];
home-manager.users.${username} = {pkgs, ...}: { imports = [
+ ../home/beets.nix
../home/fish.nix
../home/git.nix
../home/htop.nix