about summary refs log tree commit diff
path: root/profiles/music-server.nix
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/music-server.nix')
-rw-r--r--profiles/music-server.nix40
1 files changed, 0 insertions, 40 deletions
diff --git a/profiles/music-server.nix b/profiles/music-server.nix
deleted file mode 100644
index 5757db5..0000000
--- a/profiles/music-server.nix
+++ /dev/null
@@ -1,40 +0,0 @@
-{ config, pkgs, lib, ... }:
-let
-  musicFolder = "/data/fast/music";
-  vhostName = "music.${config.homelab.domain}";
-in
-{
-  # https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/audio/navidrome.nix
-  services.navidrome = {
-    enable = true;
-    settings = {
-      MusicFolder = musicFolder;
-    };
-  };
-
-  services.nginx.virtualHosts."${vhostName}" = {
-    forceSSL = true;
-    useACMEHost = config.homelab.domain;
-    listen = [
-      {
-        addr = "192.168.6.40";
-        port = 443;
-        ssl = true;
-      }
-      {
-        addr = "192.168.6.40";
-        port = 80;
-        ssl = false;
-      }
-    ];
-    locations."/" = {
-      proxyPass = "http://127.0.0.1:4533";
-      proxyWebsockets = true;
-    };
-  };
-
-  my.services.backup = {
-    paths = [ config.systemd.services.navidrome.serviceConfig.WorkingDirectory ];
-    exclude = [ "${config.systemd.services.navidrome.serviceConfig.WorkingDirectory}/cache/" ];
-  };
-}