refactor(nixos): rename navidrome library path
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user