about summary refs log tree commit diff
path: root/modules/nixos/rss-bridge.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-04-21 02:15:42 +0300
committerAzat Bahawi <azat@bahawi.net>2024-04-21 02:15:42 +0300
commite6ed60548397627bf10f561f9438201dbba0a36e (patch)
treef9a84c5957d2cc4fcd148065ee9365a0c851ae1c /modules/nixos/rss-bridge.nix
parent2024-04-18 (diff)
2024-04-21
Diffstat (limited to 'modules/nixos/rss-bridge.nix')
-rw-r--r--modules/nixos/rss-bridge.nix36
1 files changed, 0 insertions, 36 deletions
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 = [ "*" ];
-    };
-  };
-}

Consider giving Nix/NixOS a try! <3