26 lines
482 B
Nix
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;
|
|
};
|
|
};
|
|
}
|