From 750a8b355407a6cac04bfad634416d38a7c2c505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 16 Oct 2023 01:47:48 +0200 Subject: [PATCH] autoupdate: don't display diff-closure in microvms they might not have nix or the daemon --- modules/autoupdate.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/autoupdate.nix b/modules/autoupdate.nix index 320c4d09..b73b8ab5 100644 --- a/modules/autoupdate.nix +++ b/modules/autoupdate.nix @@ -64,7 +64,7 @@ }; # Always show a diff when activating a new system - system.activationScripts.diff-system = { + system.activationScripts.diff-system = lib.mkIf (!config.microvm.hypervisor ? false) { supportsDryActivation = true; text = '' if [ -e /run/current-system ] && [ -e $systemConfig ]; then