show configuration diffs
This commit is contained in:
parent
1e9a84f658
commit
8a7c1ba6a9
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue