{ ... }:
{
flake.homeModules.config-migrations= { config, lib, pkgs, ... }:
{
# Only known Home Manager store links are migrated. Real directories and# links into a user's dotfiles checkout are left alone. `run` honors HM's# dry-run mode; the old link is preserved with a numbered backup. home.activation.migrateLegacyConfigDirs= lib.hm.dag.entryBetween [ "linkGeneration" ] [ "writeBoundary" ] '' run ${pkgs.bash}/bin/bash ${./_activation/migrate-config-dirs.sh} \${lib.escapeShellArg config.xdg.configHome} '';
# App state from the old dotfiles checkout, before the links move to the# flake's dotfiles/ (see the script and modules/home/dotfiles.nix). home.activation.migrateDotfilesState= lib.hm.dag.entryBetween [ "linkGeneration" ] [ "writeBoundary" ] '' run ${pkgs.bash}/bin/bash ${./_activation/migrate-dotfiles-state.sh} \${lib.escapeShellArg "${config.home.homeDirectory}/git/daemon-sec-dotfiles"} \${lib.escapeShellArg "${config.home.homeDirectory}/NixDaemon/dotfiles"} '';
};
}