aboutsummaryrefslogtreecommitdiff
path: root/nixos/hosts/ev/navidrome.nix
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-09-21 10:19:02 +0200
committerMartin Fischer <martin@push-f.com>2025-09-21 10:19:02 +0200
commit76abe1d6fa40a777a7531e35b1cce6cad92bc8e9 (patch)
tree9828750435eb8246eca7c57d4adcae88ec6cbee0 /nixos/hosts/ev/navidrome.nix
parente209bfcacefc9d89cfc5d5926802715a03ed3935 (diff)
feat(ev): add navidrome
Diffstat (limited to 'nixos/hosts/ev/navidrome.nix')
-rw-r--r--nixos/hosts/ev/navidrome.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixos/hosts/ev/navidrome.nix b/nixos/hosts/ev/navidrome.nix
new file mode 100644
index 0000000..ea96341
--- /dev/null
+++ b/nixos/hosts/ev/navidrome.nix
@@ -0,0 +1,23 @@
+{ config, lib, pkgs, ... }:
+
+let
+ cfg = config.navidrome;
+in
+{
+ options.navidrome = {
+ port = lib.mkOption {
+ type = lib.types.port;
+ };
+ };
+
+ config = {
+ services.navidrome = {
+ enable = true;
+ settings = {
+ Address = "0.0.0.0";
+ Port = cfg.port;
+ MusicFolder = "/mnt/personal/music";
+ };
+ };
+ };
+}