From 7576621f005a71574e37c6590741376f4eb3bcdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Fri, 23 Aug 2024 09:02:54 +0000 Subject: [PATCH] fix(docspell): pass packages correctly --- configuration.nix | 4 ++-- docspell.nix | 4 +++- flake.nix | 3 +++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 2a57f44..2269036 100644 --- a/configuration.nix +++ b/configuration.nix @@ -2,7 +2,7 @@ let base-domain = "005540.xyz"; in -{ pkgs, ... }: { +{ pkgs, docspell, ... }: { imports = [ ./hardware-configuration.nix ./firewall.nix @@ -12,7 +12,7 @@ in ./postgresql.nix (import ./sourcehut.nix { inherit base-domain; }) - #(import ./docspell.nix { inherit base-domain; }) + (import ./docspell.nix { inherit base-domain docspell; }) ./userprogs.nix ]; diff --git a/docspell.nix b/docspell.nix index 7cd2667..1f3b31b 100644 --- a/docspell.nix +++ b/docspell.nix @@ -1,8 +1,10 @@ -{ base-domain, ... }: +{ base-domain, docspell, ... }: let fqdn = "docspell.${base-domain}"; in { + nixpkgs.overlays = [ docspell.overlays.default ]; + services.docspell-joex = { enable = true; base-url = "http://localhost:7878"; diff --git a/flake.nix b/flake.nix index b911d0b..396a7ca 100644 --- a/flake.nix +++ b/flake.nix @@ -15,6 +15,9 @@ modules = [ ./configuration.nix docspell.nixosModules.default + { + _module.args = { inherit docspell; }; + } ]; }; };