simple-nixos-fediverse/vm/pixelfed-vm.nix

40 lines
583 B
Nix
Raw Normal View History

2024-11-11 17:25:42 +01:00
{
pkgs,
lib,
modulesPath,
...
}:
2024-09-24 14:51:41 +02:00
let
inherit (lib) mkVMOverride;
2024-11-11 17:25:42 +01:00
in
{
imports = [ (modulesPath + "/virtualisation/qemu-vm.nix") ];
fediversity = {
enable = true;
2024-09-17 17:31:58 +02:00
domain = "localhost";
pixelfed.enable = true;
};
services.pixelfed = {
settings = {
FORCE_HTTPS_URLS = false;
};
2024-09-24 14:51:41 +02:00
nginx = {
forceSSL = mkVMOverride false;
enableACME = mkVMOverride false;
};
};
virtualisation.memorySize = 2048;
virtualisation.forwardPorts = [
{
from = "host";
host.port = 8000;
guest.port = 80;
}
];
}