Skip to content

Commit

Permalink
Merge pull request #1302 from emilazy/push-vtlomuzppvtu
Browse files Browse the repository at this point in the history
checks: remove `darwinChanges`
  • Loading branch information
emilazy authored Jan 27, 2025
2 parents 62ba0a2 + 2119dd1 commit 67e7728
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions modules/system/checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,6 @@ let

cfg = config.system.checks;

darwinChanges = ''
darwinChanges=/dev/null
if test -e /run/current-system/darwin-changes; then
darwinChanges=/run/current-system/darwin-changes
fi
darwinChanges=$(diff --changed-group-format='%>' --unchanged-group-format= /run/current-system/darwin-changes $systemConfig/darwin-changes 2> /dev/null) || true
if test -n "$darwinChanges"; then
echo >&2
echo "CHANGELOG" >&2
echo >&2
echo "$darwinChanges" >&2
echo >&2
fi
'';

macOSVersion = ''
IFS=. read -ra osVersion <<<"$(sw_vers --productVersion)"
if (( osVersion[0] < 11 || (osVersion[0] == 11 && osVersion[1] < 3) )); then
Expand Down Expand Up @@ -368,7 +352,6 @@ in
config = {

system.checks.text = mkMerge [
darwinChanges
(mkIf cfg.verifyMacOSVersion macOSVersion)
(mkIf (cfg.verifyBuildUsers && !config.nix.configureBuildUsers) oldBuildUsers)
(mkIf cfg.verifyBuildUsers buildUsers)
Expand Down

0 comments on commit 67e7728

Please sign in to comment.