dot_testing/lappy/paperless.nix

19 lines
491 B
Nix
Raw Permalink Normal View History

{ config, pkgs, lib, ... }:
{
services.paperless = {
enable = true;
# we're only hosting on loopback, so this is safe
passwordFile = builtins.toFile "admin_pass" "admin";
address = "127.0.0.1"; # see above comment
port = 5000;
};
# start paperless manually so as to not destroy battery life
systemd.services = {
paperless-scheduler.wantedBy = lib.mkForce [];
redis-paperless.wantedBy = lib.mkForce [];
redis-paperless.after = lib.mkForce [];
};
}