this post was submitted on 13 Mar 2024
17 points (100.0% liked)

Nix / NixOS

1465 readers
2 users here now

Main links

Videos

founded 1 year ago
MODERATORS
 

just realized that one thing that NixOS could use is an update changelog of what packages were updated after running sudo nixos-rebuild switch --upgrade

tbh maybe there's a verbose option that I haven't discovered yet

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 14 points 5 months ago (2 children)

Yeah, its not really well documented or ergonomic, but diff-closures can do this:

https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-profile-diff-closures.html

I have "nix profile diff-closures --profile /nix/var/nix/profiles/system | less" aliased to diffboot in my home-manager config so I can see what new packages have been installed.

Example output:

Version 80 -> 81:
  firefox: 124.0b2 → 124.0b5
  firefox-devedition-unwrapped: 124.0b2 → 124.0b5, -26.1 KiB
  ibus: 1.5.28 → 1.5.29, +189.5 KiB
  nixos-system-dio: 24.05.20240228.9099616 → 24.05.20240229.1536926
  python3.11-botocore: 1.34.21 → 1.34.49, +611.7 KiB
  qtquick3d: +8.1 KiB
  source: +84.1 KiB
[–] [email protected] 6 points 5 months ago* (last edited 5 months ago)

this works great🌻
thank you!

[–] [email protected] 5 points 5 months ago

So cool, thanks!

[–] [email protected] 5 points 5 months ago* (last edited 4 months ago)

That would be great. What I found when I looked for this was.

nvd diff $(ls -d1v /nix/var/nix/profiles/system-*-link|tail -n 2)

No idea how it works but it seems to. I just do "nix shell -p nvd" then run that.

[–] [email protected] 1 points 5 months ago

I don't have a link handy but I've seen it done before.