diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-03-14 15:40:11 -0700 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-03-14 15:40:11 -0700 |
commit | aac10bbbd7faed479be6cdbe2165b738caf04a7e (patch) | |
tree | d9dc2fa08ead092c09fddc10716801795bb562cc /ginaz/README | |
parent | 9b32d435afac5bce373e96e8a6af19fb461dc17b (diff) | |
download | nix-aac10bbbd7faed479be6cdbe2165b738caf04a7e.tar nix-aac10bbbd7faed479be6cdbe2165b738caf04a7e.tar.gz nix-aac10bbbd7faed479be6cdbe2165b738caf04a7e.tar.bz2 nix-aac10bbbd7faed479be6cdbe2165b738caf04a7e.tar.lz nix-aac10bbbd7faed479be6cdbe2165b738caf04a7e.tar.xz nix-aac10bbbd7faed479be6cdbe2165b738caf04a7e.tar.zst nix-aac10bbbd7faed479be6cdbe2165b738caf04a7e.zip |
Add some helpful commands
Diffstat (limited to 'ginaz/README')
-rw-r--r-- | ginaz/README | 6 |
1 files changed, 6 insertions, 0 deletions
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) |