upgrade-diff: make it work when nix-command is disabled

Fixes #91
This commit is contained in:
zimbatm 2023-03-13 16:08:15 +01:00
parent 68f8c40ade
commit 1e87cc4932
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7

View File

@ -3,7 +3,7 @@
{
system.activationScripts.diff = ''
if [[ -e /run/current-system ]]; then
${pkgs.nix}/bin/nix store diff-closures /run/current-system "$systemConfig"
${pkgs.nix}/bin/nix --extra-experimental-features nix-command store diff-closures /run/current-system "$systemConfig"
fi
'';
}