runs on prod now :)

This commit is contained in:
KoenDR06 2026-02-10 01:04:47 +01:00
parent d7812f37c3
commit 4c66c514a3
5 changed files with 83 additions and 87 deletions

View file

@ -1,5 +1,10 @@
{lib, ...}: let
inherit (lib) mkOption types;
{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption mkOption types;
cfg = config.horseman.containers;
in {
imports = [
./nginx.nix
@ -8,17 +13,20 @@ in {
];
options = {
backupDir = mkOption {
type = types.str;
horseman.containers = {
enable = mkEnableOption "Containers";
backupDir = mkOption {
type = types.str;
};
};
};
config = {
config = mkIf cfg.enable {
networking.nat = {
enable = true;
# Use "ve-*" when using nftables instead of iptables
internalInterfaces = ["ve-+"];
externalInterface = "eno1";
externalInterface = "enp2s0";
# Lazy IPv6 connectivity for the container
enableIPv6 = true;
};