summary refs log tree commit diff
path: root/clean-old-generations.sh
diff options
context:
space:
mode:
Diffstat (limited to 'clean-old-generations.sh')
-rwxr-xr-xclean-old-generations.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/clean-old-generations.sh b/clean-old-generations.sh
new file mode 100755
index 0000000..8b42df6
--- /dev/null
+++ b/clean-old-generations.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+nix-collect-garbage -d
+/nix/var/nix/profiles/system/bin/switch-to-configuration boot
+nix-collect-garbage -d
+/nix/var/nix/profiles/system/bin/switch-to-configuration boot