From aac10bbbd7faed479be6cdbe2165b738caf04a7e Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Thu, 14 Mar 2024 15:40:11 -0700 Subject: Add some helpful commands --- ginaz/README | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ginaz/README') diff --git a/ginaz/README b/ginaz/README index acd8dfd..3661901 100644 --- a/ginaz/README +++ b/ginaz/README @@ -55,3 +55,9 @@ reboot # upgrade to unstable 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 + +# show differences between two most recent closures +nix store diff-closures $(find /nix/var/nix/profiles -iname system-\* -type l | head -2 | xargs) -- cgit v1.2.3