2022-04-04 19:11:22 +00:00
|
|
|
# SPDX-FileCopyrightText: 2022 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2022-04-05 23:57:22 +00:00
|
|
|
{ depot, pkgs, config, ... }:
|
2022-04-04 19:11:22 +00:00
|
|
|
let
|
|
|
|
inherit (depot.ops) secrets;
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
../lib/bvm.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
# Networking!
|
|
|
|
networking = {
|
|
|
|
hostName = "bvm-paperless";
|
|
|
|
hostId = "c8d6f81f";
|
|
|
|
|
|
|
|
interfaces.enp1s0 = {
|
|
|
|
ipv4.addresses = [{ address = "10.100.0.211"; prefixLength = 23; }];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
my.ip.tailscale = "100.85.236.121";
|
|
|
|
|
2022-04-05 23:57:22 +00:00
|
|
|
services.paperless-ng = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.paperless-ngx;
|
|
|
|
address = config.my.ip.tailscale;
|
|
|
|
extraConfig = {
|
|
|
|
PAPERLESS_ALLOWED_HOSTS = "paperless.int.lukegb.com";
|
|
|
|
PAPERLESS_CORS_ALLOWED_HOSTS = "https://paperless.int.lukegb.com";
|
|
|
|
PAPERLESS_ENABLE_HTTP_REMOTE_USER = "true";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-04-04 19:11:22 +00:00
|
|
|
system.stateVersion = "22.05";
|
|
|
|
}
|