show configuration diffs

This commit is contained in:
Pim Kunis 2023-12-16 16:02:41 +01:00
parent 1e9a84f658
commit 8a7c1ba6a9

View file

@ -1,7 +1,6 @@
{ pkgs, config, lib, modulesPath, ... }: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
# ./modules/disk-config.nix
./modules/custom
./modules/uptimed.nix
];
@ -183,4 +182,10 @@
experimental-features = nix-command flakes
'';
};
system.activationScripts.diff = ''
if [[ -e /run/current-system ]]; then
${pkgs.nix}/bin/nix store diff-closures /run/current-system "$systemConfig"
fi
'';
}