Check for nixos and exit if found

This commit is contained in:
WeirdTreeThing 2025-06-18 11:08:33 -04:00
commit 884b7b62bd
2 changed files with 7 additions and 0 deletions

View file

@ -345,6 +345,12 @@ def hifi2_sof_config():
#######################################################################################
# GENERAL FUNCTIONS #
#######################################################################################
def check_nix():
with open("/etc/os-release") as os:
if "ID=nixos" in os.read():
print_error("NixOS is not supported")
exit(1)
def check_arch():
# dmi doesnt exist on arm chromebooks
if not path_exists("/sys/devices/virtual/dmi/id/"):

View file

@ -21,6 +21,7 @@ def process_args():
return parser.parse_args()
if __name__ == "__main__":
check_nix()
check_arch()
args = process_args()