home-environment: allow skipping sanity checks
See https://github.com/nix-community/home-manager/issues/4019#issuecomment-1568659267
This commit is contained in:
parent
1b61530608
commit
9a76fb9a85
|
@ -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}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue