nix/nixos/hosts/framework-server/containers.nix
2024-04-05 08:19:44 +09:00

18 lines
489 B
Nix

{ lib, self, inputs, outputs, stateVersion, hmStateVersion, ... }:
let
libx = import ../../../lib { inherit lib self inputs outputs stateVersion hmStateVersion; };
lanInterface = "enp0s13f0u4";
in {
containers = {
rdesktop = libx.mkContainer { hostname = "rdesktop"; };
};
networking = {
networkmanager.unmanaged = [ "interface-name:ve-*" ];
nat = {
enable = true;
externalInterface = lanInterface;
internalInterfaces = [ "ve-+" ];
};
};
}