From d1aaf86410a2bb08f1a59c7199abbc351d6c15ec Mon Sep 17 00:00:00 2001 From: Szymon P Date: Wed, 29 Apr 2026 17:21:28 +0200 Subject: [PATCH] chore: state before home update --- modules/cli/topgrade.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/cli/topgrade.nix b/modules/cli/topgrade.nix index 76689b1..48c3f2a 100644 --- a/modules/cli/topgrade.nix +++ b/modules/cli/topgrade.nix @@ -22,12 +22,12 @@ in }; pre_commands = { + "Git commit before system flake update" = + "cd ${system_path} && git add -A && git commit --allow-empty -m 'chore: state before system update'"; + "Git commit before home flake update" = + "cd ${home_path} && git add -A && git commit --allow-empty -m 'chore: state before home update'"; "Git pull before system flake update " = "cd ${system_path} && git pull"; "Git pull before home flake update " = "cd ${home_path} && git pull"; - "Git commit before system flake update" = - "cd ${system_path} && git add -A && git commit -m 'chore: state before system update'"; - "Git commit before home flake update" = - "cd ${home_path} && git add -A && git commit -m 'chore: state before home update'"; }; commands = { @@ -37,9 +37,9 @@ in post_commands = { "Git commit after system flake update" = - "cd ${system_path} && git add -A && git commit -m 'chore: state after system update'"; + "cd ${system_path} && git add -A && git commit --allow-empty -m 'chore: state after system update'"; "Git commit after home flake update" = - "cd ${home_path} && git add -A && git commit -m 'chore: state after home update'"; + "cd ${home_path} && git add -A && git commit --allow-empty -m 'chore: state after home update'"; "Git push system configuration" = "cd ${system_path} && git push"; "Git push home configuration" = "cd ${home_path} && git push"; };