diff --git a/hosts/phoenix.lewd.wtf/configuration.nix b/hosts/phoenix.lewd.wtf/configuration.nix index d6fe0fb..0297968 100644 --- a/hosts/phoenix.lewd.wtf/configuration.nix +++ b/hosts/phoenix.lewd.wtf/configuration.nix @@ -3,6 +3,7 @@ let utils = import ../../util/include.nix { lib = lib; }; imports = (utils.includeDir ./services) ++ + (utils.includeDir ./containers) ++ [ ./hardware-configuration.nix ./networking.nix diff --git a/hosts/phoenix.lewd.wtf/containers/test.nix b/hosts/phoenix.lewd.wtf/containers/test.nix new file mode 100644 index 0000000..b29e21f --- /dev/null +++ b/hosts/phoenix.lewd.wtf/containers/test.nix @@ -0,0 +1,22 @@ +{ lib, ... }: +{ + containers.test = { + autoStart = true; + privateNetwork = true; + hostAddress = "192.168.100.10"; + localAddress = "192.168.100.11"; + config = { config, pkgs, ... }: { + system.stateVersion = "24.05"; + + networking = { + firewall = { + enable = true; + allowedTCPPorts = [ 80 ]; + }; + useHostResolvConf = lib.mkForce false; + }; + + services.resolved.enable = true; + }; + }; +}