diff options
Diffstat (limited to 'README')
-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 |