33 lines
577 B
Nix
33 lines
577 B
Nix
{ ... }:
|
|
let
|
|
db_pass = import ../config/_passwords.nix;
|
|
in
|
|
{
|
|
my-lxc.papers = {
|
|
container = {
|
|
cores = 1;
|
|
memory = 512;
|
|
disk = "10G";
|
|
swap = 512;
|
|
};
|
|
db = {
|
|
enable = true;
|
|
password = db_pass.papers;
|
|
};
|
|
system = {
|
|
port = 28981;
|
|
importConfig = [
|
|
../config/papers-paperless.nix
|
|
];
|
|
};
|
|
logging = {
|
|
enable = true;
|
|
metricsEnable = true;
|
|
};
|
|
private = true;
|
|
auth = true;
|
|
|
|
icon = "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/paperless-ngx.png";
|
|
};
|
|
}
|