From e6ed60548397627bf10f561f9438201dbba0a36e Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 21 Apr 2024 02:15:42 +0300 Subject: 2024-04-21 --- modules/nixos/jackett.nix | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 modules/nixos/jackett.nix (limited to 'modules/nixos/jackett.nix') diff --git a/modules/nixos/jackett.nix b/modules/nixos/jackett.nix deleted file mode 100644 index 492e77a..0000000 --- a/modules/nixos/jackett.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ - config, - lib, - libNginx, - ... -}: -with lib; -let - cfg = config.nixfiles.modules.jackett; -in -{ - options.nixfiles.modules.jackett = { - enable = mkEnableOption "Jackett"; - - domain = mkOption { - description = "Domain name sans protocol scheme."; - type = with types; str; - default = "jackett.${config.networking.domain}"; - }; - }; - - config = mkIf cfg.enable { - ark.directories = [ "/var/lib/jackett" ]; - - nixfiles.modules.nginx = { - enable = true; - upstreams.jackett.servers."127.0.0.1:9117" = { }; - virtualHosts.${cfg.domain} = { - locations."/".proxyPass = "http://jackett"; - extraConfig = libNginx.config.internalOnly; - }; - }; - - services.jackett.enable = true; - }; -} -- cgit v1.2.3