refactor(nixos): rename navidrome library path

This commit is contained in:
2026-09-12 20:32:43 -04:00
parent 5be062fbf5
commit 2875a75137
2 changed files with 8 additions and 8 deletions

View File

@@ -5,7 +5,7 @@
}:
let
dataDir = "/var/lib/navidrome";
musicDir = "/music";
libraryDir = "/music";
envFile = "/run/secrets/navidrome.env";
lastfmApiKeySecret = "services/navidrome/lastfm/api-key";
lastfmSecretSecret = "services/navidrome/lastfm/secret";
@@ -20,11 +20,11 @@ in
description = "Host path mounted as Navidrome's data folder.";
};
musicPath = lib.mkOption {
libraryPath = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
example = "/srv/music";
description = "Host path mounted as Navidrome's music library.";
description = "Host path mounted as Navidrome's library folder.";
};
};
@@ -35,8 +35,8 @@ in
message = "guests.navidrome.dataPath must point at the host directory that stores Navidrome data.";
}
{
assertion = config.guests.navidrome.musicPath != null;
message = "guests.navidrome.musicPath must point at the host directory that stores the music library.";
assertion = config.guests.navidrome.libraryPath != null;
message = "guests.navidrome.libraryPath must point at the host directory that stores Navidrome's library folder.";
}
];
@@ -50,8 +50,8 @@ in
group = "storage";
mode = "2770";
};
${musicDir} = {
directory = config.guests.navidrome.musicPath;
${libraryDir} = {
directory = config.guests.navidrome.libraryPath;
owner = "root";
group = "storage";
mode = "2770";

View File

@@ -125,7 +125,7 @@
vlan = 20;
mac = "BC:24:11:C9:17:83";
dataPath = "/pikachu/data/navidrome";
musicPath = "/pikachu/media/music";
libraryPath = "/pikachu/media/music";
address = "10.23.20.43";
reverseProxy = {
enable = true;