nix-config/modules/containers/default.nix
2026-02-09 13:45:20 +01:00

26 lines
482 B
Nix

{lib, ...}: let
inherit (lib) mkOption types;
in {
imports = [
./nginx.nix
./forgejo.nix
./vaultwarden.nix
];
options = {
backupDir = mkOption {
type = types.str;
};
};
config = {
networking.nat = {
enable = true;
# Use "ve-*" when using nftables instead of iptables
internalInterfaces = ["ve-+"];
externalInterface = "eno1";
# Lazy IPv6 connectivity for the container
enableIPv6 = true;
};
};
}