From 8cdc6a511dab5a31b1bc0a90bcdcf361043498e7 Mon Sep 17 00:00:00 2001 From: Oliver Davies <oliver@oliverdavies.dev> Date: Fri, 13 Dec 2024 22:18:30 +0000 Subject: [PATCH] Add paperless-ngx https://wiki.nixos.org/wiki/Paperless https://docs.paperless-ngx.com --- nix/hosts/lemp11/default.nix | 1 + nix/modules/nixos/features/homelab/default.nix | 1 + nix/modules/nixos/features/homelab/paperless.nix | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 nix/modules/nixos/features/homelab/paperless.nix diff --git a/nix/hosts/lemp11/default.nix b/nix/hosts/lemp11/default.nix index 8b726156..8fe37f53 100644 --- a/nix/hosts/lemp11/default.nix +++ b/nix/hosts/lemp11/default.nix @@ -15,6 +15,7 @@ gitea.enable = true; immich.enable = true; jellyfin.enable = true; + paperless.enable = true; pihole.enable = true; tubearchivist-container.enable = true; }; diff --git a/nix/modules/nixos/features/homelab/default.nix b/nix/modules/nixos/features/homelab/default.nix index 7f848982..fbf82590 100644 --- a/nix/modules/nixos/features/homelab/default.nix +++ b/nix/modules/nixos/features/homelab/default.nix @@ -3,6 +3,7 @@ ./gitea.nix ./immich.nix ./jellyfin.nix + ./paperless.nix ./pi-hole.nix ./tubearchivist-container.nix ]; diff --git a/nix/modules/nixos/features/homelab/paperless.nix b/nix/modules/nixos/features/homelab/paperless.nix new file mode 100644 index 00000000..8d97a8d2 --- /dev/null +++ b/nix/modules/nixos/features/homelab/paperless.nix @@ -0,0 +1,13 @@ +{ config, lib, ... }: + +with lib; + +{ + options.features.homelab.paperless.enable = mkEnableOption "Enable paperless"; + + config = mkIf config.features.homelab.paperless.enable { + services.paperless = { + enable = true; + }; + }; +}