diff --git a/modules/home-environment.nix b/modules/home-environment.nix index 361db30e8..48d08580f 100644 --- a/modules/home-environment.nix +++ b/modules/home-environment.nix @@ -711,8 +711,10 @@ in ${builtins.readFile ./lib-bash/activation-init.sh} - checkUsername ${escapeShellArg config.home.username} - checkHomeDirectory ${escapeShellArg config.home.homeDirectory} + if [[ ! -v SKIP_SANITY_CHECKS ]]; then + checkUsername ${escapeShellArg config.home.username} + checkHomeDirectory ${escapeShellArg config.home.homeDirectory} + fi ${activationCmds} '';