Some fixes for Pixelfed on metal #27
|
@ -1,17 +1,24 @@
|
||||||
{ lib, config, modulesPath, ... }:
|
{ lib, config, modulesPath, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkVMOverride;
|
inherit (lib) mkVMOverride mapAttrs' filterAttrs;
|
||||||
|
|
||||||
|
cfg = config.services.garage;
|
||||||
|
|
||||||
fedicfg = config.fediversity.internal.garage;
|
fedicfg = config.fediversity.internal.garage;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
imports = [ (modulesPath + "/virtualisation/qemu-vm.nix") ];
|
imports = [ (modulesPath + "/virtualisation/qemu-vm.nix") ];
|
||||||
|
|
||||||
services.nginx.virtualHosts.${fedicfg.web.rootDomain} = {
|
services.nginx.virtualHosts =
|
||||||
forceSSL = mkVMOverride false;
|
let
|
||||||
enableACME = mkVMOverride false;
|
value = {
|
||||||
};
|
forceSSL = mkVMOverride false;
|
||||||
|
enableACME = mkVMOverride false;
|
||||||
|
};
|
||||||
|
in mapAttrs'
|
||||||
|
(bucket: _: {name = fedicfg.web.domainForBucket bucket; inherit value;})
|
||||||
|
(filterAttrs (_: {website, ...}: website) cfg.ensureBuckets);
|
||||||
|
|
||||||
virtualisation.diskSize = 2048;
|
virtualisation.diskSize = 2048;
|
||||||
virtualisation.forwardPorts = [
|
virtualisation.forwardPorts = [
|
||||||
|
|
Reference in a new issue