Flake: update inputs and show diff on switch

This commit is contained in:
Moritz Böhme 2023-02-20 19:04:38 +01:00
parent bf5a280f34
commit 621d77bc6e
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
2 changed files with 33 additions and 27 deletions

View file

@ -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
'';
}