{ config, lib, ... }: with lib; let cfg = config.modules.containers._template; in { options.modules.containers._template = { enable = mkEnableOption ""; }; config = mkIf cfg.enable { containers._template = { autoStart = true; ephemeral = true; # XXX: false if the container isn't stateless privateNetwork = true; # XXX: more network setup (IP) needed here config = { config, pkgs, ...}: { system.stateVersion = "24.05"; }; }; }; }