Note about why this method is valid

This commit is contained in:
Ana Hobden 2022-11-14 08:33:10 -08:00
parent ffaee2669d
commit 15f44b34b3

View file

@ -25,6 +25,7 @@ impl Planner for LinuxMulti {
async fn plan(self) -> Result<InstallPlan, Box<dyn std::error::Error + Sync + Send>> {
// If on NixOS, running `harmonic` is pointless
// NixOS always sets up this file as part of setting up /etc itself: https://github.com/NixOS/nixpkgs/blob/bdd39e5757d858bd6ea58ed65b4a2e52c8ed11ca/nixos/modules/system/etc/setup-etc.pl#L145
if Path::new("/etc/NIXOS").exists() {
return Err(Error::NixOs.into());
}