runs on prod now :)
This commit is contained in:
parent
d7812f37c3
commit
4c66c514a3
5 changed files with 83 additions and 87 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue