summary refs log tree commit diff stats
path: root/system/services/libreddit/default.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-20 14:06:07 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-20 14:06:07 +0100
commit2a2ac56cf78cccad11eb30ad20a356b91337f0ac (patch)
treef59c48a211410d271d34665fce9541f999e7d952 /system/services/libreddit/default.nix
parentrefactor({modules,test}): Migrate to a `by-name` structure (diff)
downloadnixos-server-2a2ac56cf78cccad11eb30ad20a356b91337f0ac.tar.gz
nixos-server-2a2ac56cf78cccad11eb30ad20a356b91337f0ac.zip
refactor(system/services/libreddit): Migrate to `by-name`
This also includes a rename into `redlib` because of upstream changes.
Diffstat (limited to '')
-rw-r--r--system/services/libreddit/default.nix26
1 files changed, 0 insertions, 26 deletions
diff --git a/system/services/libreddit/default.nix b/system/services/libreddit/default.nix
deleted file mode 100644
index f7cc5f8..0000000
--- a/system/services/libreddit/default.nix
+++ /dev/null
@@ -1,26 +0,0 @@
-{
-  config,
-  pkgsUnstable,
-  lib,
-  ...
-}: let
-  domain = "libreddit.vhack.eu";
-in {
-  services.libreddit = {
-    enable = true;
-    package = pkgsUnstable.redlib;
-    port = 8080;
-    address = "127.0.0.1";
-    openFirewall = false;
-  };
-
-  services.nginx = {
-    enable = true;
-    virtualHosts.${domain} = {
-      locations."/".proxyPass = "http://127.0.0.1:${toString config.services.libreddit.port}";
-
-      enableACME = lib.mkDefault true;
-      forceSSL = lib.mkDefault true;
-    };
-  };
-}