Refactor to use the same logic on all Linux distributions: merge NixOS and Debian logic and make sure it is unified across all Linux systems * add option to simulate configuration change