#!/usr/bin/env bash

# Nomarchy Install Script
# Entry point for the Nomarchy installer.

INSTALLER="/etc/install.sh"
[[ ! -f "$INSTALLER" ]] && INSTALLER="/etc/nixos/nomarchy/installer/install.sh"

if [[ -f "$INSTALLER" ]]; then
    sudo "$INSTALLER" "$@"
else
    echo "Error: Nomarchy installer not found at $INSTALLER"
    exit 1
fi
