modules/darwin/common/upgrade-diff: switch to nvd
This commit is contained in:
parent
d446870b79
commit
0b0e0feb1b
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
# set $HOME to avoid 'warning: $HOME is not owned by you'
|
||||
# https://github.com/NixOS/nix/issues/6834
|
||||
|
@ -6,7 +6,7 @@
|
|||
system.activationScripts.preActivation.text = ''
|
||||
if [[ -e /run/current-system ]]; then
|
||||
echo "--- diff to current-system"
|
||||
HOME=/var/root ${config.nix.package}/bin/nix --extra-experimental-features nix-command store diff-closures /run/current-system "$systemConfig"
|
||||
HOME=/var/root ${pkgs.nvd}/bin/nvd --nix-bin-dir=${config.nix.package}/bin diff /run/current-system "$systemConfig"
|
||||
echo "---"
|
||||
fi
|
||||
'';
|
||||
|
|
Loading…
Add table
Reference in a new issue