diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-11-23 14:04:46 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-11-23 14:04:46 +0530 |
| commit | f5f2198da113394bc14e0bfad4e4aaa9ec038033 (patch) | |
| tree | f1ba3ba69e9f156c5b91c0831c71b65b3c3d64a8 /modules/storage | |
| parent | f5d51dba7341eadf04749f6a9703f83a5cde4390 (diff) | |
| download | homeserver-nixos-config-f5f2198da113394bc14e0bfad4e4aaa9ec038033.tar.gz homeserver-nixos-config-f5f2198da113394bc14e0bfad4e4aaa9ec038033.zip | |
Paperless
Diffstat (limited to 'modules/storage')
| -rw-r--r-- | modules/storage/default.nix | 1 | ||||
| -rw-r--r-- | modules/storage/docs.nix | 15 | ||||
| -rw-r--r-- | modules/storage/syncthing.nix | 5 |
3 files changed, 21 insertions, 0 deletions
diff --git a/modules/storage/default.nix b/modules/storage/default.nix index d4e8da9..f0c9af8 100644 --- a/modules/storage/default.nix +++ b/modules/storage/default.nix @@ -5,5 +5,6 @@ ./immich.nix ./send.nix ./syncthing.nix + ./docs.nix ]; } diff --git a/modules/storage/docs.nix b/modules/storage/docs.nix new file mode 100644 index 0000000..7ea4fad --- /dev/null +++ b/modules/storage/docs.nix @@ -0,0 +1,15 @@ +{ settings, lib, ... }: +{ + services.paperless = { + enable = true; + user = settings.paperless.user; + address = "0.0.0.0"; + database.createLocally = true; + port = settings.network.ports.paperless; + consumptionDir = settings.paperless.docsDir; + consumptionDirIsPublic = true; + settings = { + PAPERLESS_URL = lib.mkForce "http://paperless.local"; + }; + }; +} diff --git a/modules/storage/syncthing.nix b/modules/storage/syncthing.nix index 982ee71..27db72b 100644 --- a/modules/storage/syncthing.nix +++ b/modules/storage/syncthing.nix @@ -32,6 +32,11 @@ in path = settings.media.booksDir; devices = lib.attrNames settings.syncthing.devices; }; + artemis-docs = { + label = "Documents"; + path = settings.paperless.docsDir; + devices = lib.attrNames settings.syncthing.devices; + }; }; overrideDevices = false; |
