feat: add closure diff script on activation

This commit is contained in:
dusk 2021-05-03 05:01:04 +03:00
parent e3fbb399ed
commit 98bd02b5e7
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -124,6 +124,12 @@ in
inherit registry;
};
system.activationScripts.diff = ''
${pkgs.nixUnstable}/bin/nix store \
--experimental-features 'nix-command' \
diff-closures /run/current-system "$systemConfig"
'';
# security = {
# hideProcessInformation = true;
# protectKernelImage = true;