services.home-manager.autoUpgrade.preSwitchCommands

Home-Manager option

list of string

Shell commands executed before home-manager switch.

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