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-25 21:02:59 +0100 |
| commit | 816563b0c8143735d100687bf40d751296cbfa73 (patch) | |
| tree | 321d85e737fc96f447e23297678c888947f65b1f /nixos/hosts/ev | |
| parent | 13ef8917f09b4e8e33b119d8ac8d614bdc8f2589 (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; }; }; }; |
