summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/settings/fish/functions/home-manager-rollback.fish3
1 files changed, 3 insertions, 0 deletions
diff --git a/user/settings/fish/functions/home-manager-rollback.fish b/user/settings/fish/functions/home-manager-rollback.fish
new file mode 100644
index 00000000..c3b585b0
--- /dev/null
+++ b/user/settings/fish/functions/home-manager-rollback.fish
@@ -0,0 +1,3 @@
+function home-manager-rollback
+    (nix-shell -p home-manager --run 'home-manager --generations' | head -n2 | tail -n1 | field 7)/activate
+end