feat(nixos): add navidrome environment secrets
This commit is contained in:
@@ -23,6 +23,13 @@ in
|
||||
readOnly = true;
|
||||
description = "Guest path for Navidrome's `MusicFolder` setting.";
|
||||
};
|
||||
|
||||
environmentFile = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
default = "/run/secrets/navidrome.env";
|
||||
readOnly = true;
|
||||
description = "Guest path for Navidrome's environment file.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
@@ -43,6 +50,7 @@ in
|
||||
user = "navidrome";
|
||||
group = "storage";
|
||||
openFirewall = true;
|
||||
environmentFile = cfg.environmentFile;
|
||||
settings = {
|
||||
Address = "0.0.0.0";
|
||||
Port = 4533;
|
||||
|
||||
Reference in New Issue
Block a user