Use configuration as code. Ansible, puppet, salt, nix or something else. Debian is nice but its a diy ubuntu. You appreciate the effort cononical puts in to take away the rough edges on places. Using debian allows you to craft the OS you want from scratch, which is great! Just make sure you don’t have to redo work if your system dies at some point.