aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-04-03 13:34:11 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-04-03 13:34:11 -0700
commit40d73be8797434f7a6e124ce64ae38cd28a06fd0 (patch)
treed3db96eb925ea97973eaaf50982f13c381e23dcb /README
parent0999b3924f6d6e10ba8dd8bc32f8f25aa4409129 (diff)
downloadnix-40d73be8797434f7a6e124ce64ae38cd28a06fd0.tar
nix-40d73be8797434f7a6e124ce64ae38cd28a06fd0.tar.gz
nix-40d73be8797434f7a6e124ce64ae38cd28a06fd0.tar.bz2
nix-40d73be8797434f7a6e124ce64ae38cd28a06fd0.tar.lz
nix-40d73be8797434f7a6e124ce64ae38cd28a06fd0.tar.xz
nix-40d73be8797434f7a6e124ce64ae38cd28a06fd0.tar.zst
nix-40d73be8797434f7a6e124ce64ae38cd28a06fd0.zip
Update diff-closure command and current flake.lock
Diffstat (limited to '')
-rw-r--r--README2
1 files changed, 1 insertions, 1 deletions
diff --git a/README b/README
index 4384a3b..49ae434 100644
--- a/README
+++ b/README
@@ -57,7 +57,7 @@ nix-channel --add https://nixos.org/channels/nixos-unstable nixos
nixos-rebuild switch --upgrade
# later upgrades after flakes are enabled
-cd /etc/nixos && nix flake update && cd && nixos-rebuild switch --upgrade && echo && nixos-rebuild list-generations | cat && echo && nix store diff-closures $(find /nix/var/nix/profiles -iname system-\* -type l | sort | tail -2 | xargs)
+cd /etc/nixos && nix flake update && cd && nixos-rebuild switch --upgrade && echo && nixos-rebuild list-generations | cat && echo && res=$(find /nix/var/nix/profiles -iname system-\* -type l | sort | tail -2); if [[ $(echo -E "${res}" | wc -l) -eq 2 ]]; then echo "+ diff between $(echo -E "${res}" | xargs)\n"; nix store diff-closures $(echo -E "${res}" | xargs); fi
# clean up all but the two most recent systems
nixos-rebuild list-generations | cat