fixed infinite recursion
This commit is contained in:
parent
6bbccc4f5a
commit
22caf58184
|
@ -1,21 +1,35 @@
|
||||||
{lib, ...}: let
|
{
|
||||||
|
lib,
|
||||||
|
nixpkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
host = "127.0.0.1";
|
host = "127.0.0.1";
|
||||||
port = 8989;
|
port = 8989;
|
||||||
in {
|
in {
|
||||||
imports = [
|
microvm.vms."sonarr" = {
|
||||||
(lib.extensions.createVm {name = "Sonarr VM";} {
|
pkgs = import nixpkgs {system = nixpkgs.system;};
|
||||||
|
microvm.hyprvisor = "cloud-hyprvisor";
|
||||||
|
microvm.shares = [
|
||||||
|
{
|
||||||
|
tag = "ro-store";
|
||||||
|
source = "/nix/store";
|
||||||
|
mountPoint = "/nix/.ro-store";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
services.sonarr = {
|
services.sonarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = false; # Hide sonarr behind firewall
|
openFirewall = true; # Hide sonarr behind firewall
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."git.spoodythe.one" = {
|
services.nginx.virtualHosts."sonarr.spoodythe.one" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${host}:${toString port}";
|
proxyPass = "http://${host}:${toString port}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
};
|
||||||
];
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue