eoli3n
what you ask is Debian what you need is FreeBSD
For exemple
16/8 is the most common intermittent fasting protocol for begginers. 20/4 is recommended in case of autoimmune disease, to reverse leaky gut and insulin resistance.
You can check LXD too : https://wiki.archlinux.org/title/LXD And podman : https://podman.io/ Podman is docker without dockerd, and is more similar to what is bastillebsd to jails. https://bastillebsd.org/
Linux has this : https://wiki.archlinux.org/title/Systemd-nspawn
I had a really bad experience with NixOS, the idea is great, but I had a lot of troubles at each generation switch. I don’t like it because I had to learn a lot of specific tools, that only applies on that OS, and it was (really.) hard. I prefer a classic distro, maybe Debian (or Freebsd if not linux), with Ansible for declarative config, and ZFS storage to be able to revert a snapshot if I have any kind of problem.