From 0f43f9976ed84364e6f52faaf2c41ae60d456b33 Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Tue, 13 Feb 2024 18:43:50 +0100 Subject: [PATCH] defaults: enable system deltas Signed-off-by: Ryan Lahfa --- hive.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hive.nix b/hive.nix index 175ea2a..2da30aa 100644 --- a/hive.nix +++ b/hive.nix @@ -26,6 +26,16 @@ in networking.useDHCP = false; services.openssh.enable = true; + # Enable system diffs. + system.activationScripts.system-diff = { + supportsDryActivation = true; # safe: only outputs to stdout + text = '' + if [ -e /run/current-system ]; then + PATH=$PATH:${pkgs.nix}/bin ${pkgs.nvd}/bin/nvd diff /run/current-system $systemConfig + fi + ''; + }; + # Mot de passe classique qu'on trouvera dans le "trousseau" legacy. users.users.root.initialHashedPassword = "$y$j9T$RoSZj8ezgR7cI8Le6xqwW/$0BI6G1Nqy/G0g0sNhQhyEedqoHsEyMFVjQgc3TPqE.4"; system.stateVersion = "24.05";