Flake: update inputs and show diff on switch
This commit is contained in:
parent
bf5a280f34
commit
621d77bc6e
2 changed files with 33 additions and 27 deletions
|
|
@ -133,4 +133,10 @@ with lib;
|
|||
};
|
||||
xdg.userDirs.enable = true;
|
||||
};
|
||||
|
||||
system.activationScripts.diff = ''
|
||||
if [ -e /run/current-system ]; then
|
||||
${pkgs.nvd}/bin/nvd --nix-bin-dir ${pkgs.nix}/bin diff /run/current-system/ "$systemConfig"
|
||||
fi
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue