diff options
| author | Martin Fischer <martin@push-f.com> | 2025-12-25 20:59:34 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2025-12-26 08:03:25 +0100 |
| commit | fbc48c342145b566e24990e5250951cfd6f76b3b (patch) | |
| tree | 93e757b416cc7492b31b8994217be58d71226125 /nixos/hosts/ev | |
| parent | a36b384657a11acdb267bfefa9bc7719ab6ab4a0 (diff) | |
refactor: define dirs in main modules
Diffstat (limited to 'nixos/hosts/ev')
| -rw-r--r-- | nixos/hosts/ev/default.nix | 1 | ||||
| -rw-r--r-- | nixos/hosts/ev/navidrome.nix | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/nixos/hosts/ev/default.nix b/nixos/hosts/ev/default.nix index 459b48f..1e4186f 100644 --- a/nixos/hosts/ev/default.nix +++ b/nixos/hosts/ev/default.nix @@ -101,6 +101,7 @@ in navidrome = { port = ports.navidrome; + musicDir = "/mnt/personal/music"; }; qbittorrent = { diff --git a/nixos/hosts/ev/navidrome.nix b/nixos/hosts/ev/navidrome.nix index ea96341..0556ef5 100644 --- a/nixos/hosts/ev/navidrome.nix +++ b/nixos/hosts/ev/navidrome.nix @@ -8,6 +8,9 @@ in port = lib.mkOption { type = lib.types.port; }; + musicDir = lib.mkOption { + type = lib.types.str; + }; }; config = { @@ -16,7 +19,7 @@ in settings = { Address = "0.0.0.0"; Port = cfg.port; - MusicFolder = "/mnt/personal/music"; + MusicFolder = cfg.musicDir; }; }; }; |
