How have you automated configuring your machines in terms of packages and dotfiles so it works cross-distro?

https://lemmy.ml/post/19007271

How have you automated configuring your machines in terms of packages and dotfiles so it works cross-distro? - Lemmy

I’m looking for interesting tools to automate managing packaging and configuring everything automated. And yeah I know about NixOS but I like to distro hop and experiment so I for now know these: - Ansible [https://www.ansible.com/] - automating many machines, using different package names as vars and package managers. - Bash [https://www.gnu.org/software/bash/] - the most native and compatible scripting language that can be. - Chezmoi [https://chezmoi.io/] - for dotfiles. For now that’s it. I’m looking forward for your suggestions!

Nix, the package manager, is distro-agnostic. Add Home Manager on top of it and you’re good to go; both packages and dotfiles are dealt with.
GitHub - nix-community/home-manager: Manage a user environment using Nix [maintainer=@khaneliman, @rycee]

Manage a user environment using Nix [maintainer=@khaneliman, @rycee] - GitHub - nix-community/home-manager: Manage a user environment using Nix [maintainer=@khaneliman, @rycee]

GitHub
I do this in combination with Nix-Darwin for one of my machines. I also have some Kubernetes clusters and RISC-V machines running bare metal executables using NixOS-Anywhere and some other stuff.
That does not sound like some basic stuff though. 😆
Hm I see, thanks. A good one when you have it installed on every machine.