From c080e45ac409884e7e1b4dd6c73a546acc756aa4 Mon Sep 17 00:00:00 2001 From: xqtc161 Date: Wed, 19 Jun 2024 11:54:07 +0200 Subject: [PATCH] Add paperless --- hosts/x86_64-linux/beleth/default.nix | 6 ++++++ hosts/x86_64-linux/beleth/paperless.nix | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 hosts/x86_64-linux/beleth/paperless.nix diff --git a/hosts/x86_64-linux/beleth/default.nix b/hosts/x86_64-linux/beleth/default.nix index 8d6cfca..c22484e 100644 --- a/hosts/x86_64-linux/beleth/default.nix +++ b/hosts/x86_64-linux/beleth/default.nix @@ -17,6 +17,7 @@ with lib; { ./networking.nix ./git.nix ./nextcloud.nix + ./paperless.nix ./docker.nix ./nfs.nix ../../gc.nix @@ -113,6 +114,11 @@ with lib; { reverse_proxy http://127.0.0.1:3001 ''; }; + "paperless.heroin.trade" = { + extraConfig = '' + reverse_proxy http://127.0.0.1:28981 + ''; + }; }; }; diff --git a/hosts/x86_64-linux/beleth/paperless.nix b/hosts/x86_64-linux/beleth/paperless.nix new file mode 100644 index 0000000..61e095c --- /dev/null +++ b/hosts/x86_64-linux/beleth/paperless.nix @@ -0,0 +1,6 @@ +{config, lib, inputs, ...}: +{ +services.paperless.enable = true; + enable = true; + passwordFile = "/etc/paperless_sc"; +}