forked from Fediversity/Fediversity
Nicolas Jeannerod
8412a3f1fe
Co-authored-by: Taeer Bar-Yam <taeer.bar-yam@moduscreate.com> Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io> Reviewed-on: Fediversity/simple-nixos-fediverse#26 Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com> Co-committed-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
34 lines
575 B
Nix
34 lines
575 B
Nix
{ pkgs, lib, modulesPath, ... }:
|
|
|
|
let
|
|
inherit (lib) mkVMOverride;
|
|
|
|
in {
|
|
imports = [ (modulesPath + "/virtualisation/qemu-vm.nix") ];
|
|
|
|
fediversity = {
|
|
enable = true;
|
|
domain = "localhost";
|
|
pixelfed.enable = true;
|
|
};
|
|
|
|
services.pixelfed = {
|
|
settings = {
|
|
FORCE_HTTPS_URLS = false;
|
|
};
|
|
nginx = {
|
|
forceSSL = mkVMOverride false;
|
|
enableACME = mkVMOverride false;
|
|
};
|
|
};
|
|
|
|
virtualisation.memorySize = 2048;
|
|
virtualisation.forwardPorts = [
|
|
{
|
|
from = "host";
|
|
host.port = 8000;
|
|
guest.port = 80;
|
|
}
|
|
];
|
|
}
|