mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 06:30:18 +02:00
- Updated flake.nix to change Alejandra and other inputs to follow the new repository structure. - Modified uptime-kuma configurations to reflect the new domain for Caddy reverse proxy settings. - Adjusted various multimedia services in Sisyphe to use the new domain for Caddy virtual hosts. - Disabled the Sabnzbd service in Sisyphe and updated its Caddy configuration. - Corrected multiple service configurations in Sisyphe to point to the new domain, including Grafana, Nextcloud, and Synapse Matrix. - Ensured all references to hypervirtual.world are replaced with rougebordeaux.xyz across all relevant files.
43 lines
906 B
Nix
43 lines
906 B
Nix
{
|
|
config,
|
|
lib,
|
|
secrets,
|
|
...
|
|
}:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.downloads.music;
|
|
in
|
|
{
|
|
options = {
|
|
downloads.music.directory = mkOption {
|
|
type = types.str;
|
|
default = "/srv/media/Music";
|
|
};
|
|
};
|
|
config = {
|
|
|
|
sops.secrets.slskd = {
|
|
sopsFile = "${secrets}/secrets/slskd.env";
|
|
format = "dotenv";
|
|
};
|
|
|
|
services.slskd = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
environmentFile = config.sops.secrets.slskd.path;
|
|
domain = null;
|
|
settings = {
|
|
shares.directories = [ "${cfg.directory}/clean" ];
|
|
soulseek.description = "i luv katz n mewsik";
|
|
directories.downloads = "${cfg.directory}/downloads";
|
|
directories.incomplete = "${cfg.directory}/incomplete";
|
|
};
|
|
};
|
|
|
|
services.caddy.virtualHosts."http://slskd.sisyphe.normandy.rougebordeaux.xyz".extraConfig = ''
|
|
reverse_proxy :5030
|
|
'';
|
|
};
|
|
}
|