nixos-flake icon indicating copy to clipboard operation
nixos-flake copied to clipboard

Show what was upgraded after activation

Open srid opened this issue 3 years ago • 2 comments

cf.

❯ > nix store diff-closures /nix/var/nix/profiles/system-151-link /nix/var/nix/profiles/system-152-link
Agda: -1755.7 KiB
ChasingBottoms: -20.8 KiB
JuicyPixels: -97.2 KiB
aeson: +84.2 KiB
aeson-pretty: -8.6 KiB
attoparsec: +18.9 KiB
bifunctors: +33.1 KiB
blaze-html: +8.1 KiB
boring: ∅ → 0.2.1
cmdargs: ∅ → 0.10.22
darwin-system: 23.05.20230406.0e19daa+darwin4.87b9d09 → 23.05.20230411.3fb8eed+darwin4.87b9d09
digest: 0.0.1.6 → 0.0.1.7
doclayout: 0.4 → 0.4.0.1, +50.5 KiB
...

srid avatar Apr 12 '23 17:04 srid

https://gitlab.com/khumba/nvd

srid avatar Apr 12 '23 17:04 srid

We could as well add an upgrade command:

nix run .#upgrade

That does the following:

  • Update the nixpkgs (and home-manager, etc.) inputs
  • Run a build of the configuration
  • Run nvd to inform user of changes
  • Do actual activation if they accept

srid avatar Apr 12 '23 17:04 srid