2022-12-24 02:57:34 +00:00
|
|
|
# NOTE: modulesPath and imports are taken from nixpkgs#59219
|
|
|
|
{ modulesPath, pkgs, lib, ... }: {
|
|
|
|
imports = [ (modulesPath + "/virtualisation/qemu-vm.nix") ];
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
permitRootLogin = "yes";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.docspell-restserver = {
|
|
|
|
openid = lib.mkForce [ ];
|
|
|
|
backend = lib.mkForce {
|
|
|
|
signup = {
|
|
|
|
mode = "open";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Otherwise oomkiller kills docspell
|
2022-12-24 23:42:32 +00:00
|
|
|
virtualisation.memorySize = 4096;
|
2022-12-24 02:57:34 +00:00
|
|
|
|
|
|
|
virtualisation.forwardPorts = [
|
|
|
|
# SSH
|
|
|
|
{ from = "host"; host.port = 64022; guest.port = 22; }
|
|
|
|
# Docspell
|
|
|
|
{ from = "host"; host.port = 64080; guest.port = 7880; }
|
|
|
|
];
|
|
|
|
|
|
|
|
}
|