refactor(nixos): rename navidrome library path
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
dataDir = "/var/lib/navidrome";
|
dataDir = "/var/lib/navidrome";
|
||||||
musicDir = "/music";
|
libraryDir = "/music";
|
||||||
envFile = "/run/secrets/navidrome.env";
|
envFile = "/run/secrets/navidrome.env";
|
||||||
lastfmApiKeySecret = "services/navidrome/lastfm/api-key";
|
lastfmApiKeySecret = "services/navidrome/lastfm/api-key";
|
||||||
lastfmSecretSecret = "services/navidrome/lastfm/secret";
|
lastfmSecretSecret = "services/navidrome/lastfm/secret";
|
||||||
@@ -20,11 +20,11 @@ in
|
|||||||
description = "Host path mounted as Navidrome's data folder.";
|
description = "Host path mounted as Navidrome's data folder.";
|
||||||
};
|
};
|
||||||
|
|
||||||
musicPath = lib.mkOption {
|
libraryPath = lib.mkOption {
|
||||||
type = lib.types.nullOr lib.types.str;
|
type = lib.types.nullOr lib.types.str;
|
||||||
default = null;
|
default = null;
|
||||||
example = "/srv/music";
|
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.";
|
message = "guests.navidrome.dataPath must point at the host directory that stores Navidrome data.";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
assertion = config.guests.navidrome.musicPath != null;
|
assertion = config.guests.navidrome.libraryPath != null;
|
||||||
message = "guests.navidrome.musicPath must point at the host directory that stores the music library.";
|
message = "guests.navidrome.libraryPath must point at the host directory that stores Navidrome's library folder.";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -50,8 +50,8 @@ in
|
|||||||
group = "storage";
|
group = "storage";
|
||||||
mode = "2770";
|
mode = "2770";
|
||||||
};
|
};
|
||||||
${musicDir} = {
|
${libraryDir} = {
|
||||||
directory = config.guests.navidrome.musicPath;
|
directory = config.guests.navidrome.libraryPath;
|
||||||
owner = "root";
|
owner = "root";
|
||||||
group = "storage";
|
group = "storage";
|
||||||
mode = "2770";
|
mode = "2770";
|
||||||
|
|||||||
@@ -125,7 +125,7 @@
|
|||||||
vlan = 20;
|
vlan = 20;
|
||||||
mac = "BC:24:11:C9:17:83";
|
mac = "BC:24:11:C9:17:83";
|
||||||
dataPath = "/pikachu/data/navidrome";
|
dataPath = "/pikachu/data/navidrome";
|
||||||
musicPath = "/pikachu/media/music";
|
libraryPath = "/pikachu/media/music";
|
||||||
address = "10.23.20.43";
|
address = "10.23.20.43";
|
||||||
reverseProxy = {
|
reverseProxy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user