services.home-manager.autoUpgrade.preSwitchCommands
Home-Manager option
list of string
Shell commands executed before home-manager switch.
type: list of stringDefault
if lib.versionAtLeast config.home.stateVersion "26.05" || !config.services.home-manager.autoUpgrade.useFlake then [ ] else [ "nix flake update" ]
Example
declared in: <home-manager/modules/services/home-manager-auto-upgrade.nix>source unavailable[ "${pkgs.gitMinimal}/bin/git pull" "nix flake update" ]