{ config, pkgs, lib, ... }: { # Ensure the script is executable and available environment.systemPackages = [ pkgs.bash ]; # Add the activation script system.activationScripts.recreateConfig = lib.mkAfter "setupNetworking" '' ${config.flakeRoot.outPath}/assets/scripts/recreate_config.sh ''; }