all repos — nixfiles @ d6ff15479a8863724c28f94ab5cdc216a2b897c8

System and user configuration, managed by nix and home-manager

Port home-manager rollback function to fish
Alan Pearce alan@alanpearce.eu
Tue, 22 Aug 2023 19:10:47 +0200
commit

d6ff15479a8863724c28f94ab5cdc216a2b897c8

parent

f8f5398d96b34adb178b9b73ee8228e78eddd329

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
A 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