mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 09:58:26 +00:00
Add support for integrating into nix/nixos
This commit is contained in:
52
nix/configuration-test.nix
Normal file
52
nix/configuration-test.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
docspell = import ./release.nix;
|
||||
in
|
||||
{
|
||||
imports = docspell.modules;
|
||||
|
||||
i18n = {
|
||||
consoleKeyMap = "neo";
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
};
|
||||
|
||||
users.users.root = {
|
||||
password = "root";
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
config = {
|
||||
packageOverrides = pkgs:
|
||||
let
|
||||
callPackage = pkgs.lib.callPackageWith(custom // pkgs);
|
||||
custom = {
|
||||
docspell = callPackage (docspell.pkg "0.2.0") {};
|
||||
};
|
||||
in custom;
|
||||
};
|
||||
};
|
||||
|
||||
services.docspell-joex = {
|
||||
enable = true;
|
||||
base-url = "http://docspelltest:7878";
|
||||
};
|
||||
services.docspell-restserver = {
|
||||
enable = true;
|
||||
};
|
||||
services.docspell-consumedir = {
|
||||
enable = true;
|
||||
watchDirs = ["/tmp/test"];
|
||||
urls = ["http://localhost:7880/api/v1/open/upload/item/blabla"];
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
enable = false;
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "docspelltest";
|
||||
};
|
||||
|
||||
system.stateVersion = "19.09";
|
||||
|
||||
}
|
Reference in New Issue
Block a user