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; }; + } ]; }; };