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/rss-bridge.nix | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 modules/nixos/rss-bridge.nix (limited to 'modules/nixos/rss-bridge.nix') diff --git a/modules/nixos/rss-bridge.nix b/modules/nixos/rss-bridge.nix deleted file mode 100644 index de1d6b6..0000000 --- a/modules/nixos/rss-bridge.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ - config, - lib, - libNginx, - ... -}: -with lib; -let - cfg = config.nixfiles.modules.rss-bridge; -in -{ - options.nixfiles.modules.rss-bridge = { - enable = mkEnableOption "RSS-Bridge"; - - domain = mkOption { - description = "Domain name sans protocol scheme."; - type = with types; str; - default = "rss-bridge.${config.networking.domain}"; - }; - }; - - config = mkIf cfg.enable { - ark.directories = [ "/var/lib/rss-bridge" ]; - - nixfiles.modules.nginx = { - enable = true; - virtualHosts.${cfg.domain}.extraConfig = libNginx.config.internalOnly; - }; - - services.rss-bridge = { - enable = true; - virtualHost = cfg.domain; - whitelist = [ "*" ]; - }; - }; -} -- cgit 1.4.1