# Provisions a systems by installing/uninstalling packages in provisions. # Provisions are a collection of nuon files in PACKAGE_HOME/Provsions/*. # All files there are expected to list manifests. # They are collected and installed. # A precedence order for package sources will be enforced: # native packages > packages > language packages. # This precedence will be enforced, even if, packages need to be reinstalled. # It depends on the availablity of packages in their given source. # TODO: should i add flatpak to native packages? use ./folders.nu use ./path.nu export def provision [] { # scan provisions # check if installed packages are synced with current manifests # check if current installed packages are installed via correct source # install all missing. reinstall all with higher precedence # uninstall non-provisioned ? # setup path }