diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-04-03 13:34:11 -0700 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-04-03 13:34:11 -0700 |
commit | 40d73be8797434f7a6e124ce64ae38cd28a06fd0 (patch) | |
tree | d3db96eb925ea97973eaaf50982f13c381e23dcb /README | |
parent | 0999b3924f6d6e10ba8dd8bc32f8f25aa4409129 (diff) | |
download | nix-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-- | README | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |