diff --git a/.envrc b/.envrc index b55f6ba..81c38a4 100644 --- a/.envrc +++ b/.envrc @@ -29,4 +29,4 @@ EOT chmod +x "$alias_file" } -export_alias flakeup 'nix flake update && git commit flake.lock -m "nix: update flake sources" && FLAKE=$PWD nh os switch' +export_alias flakeup 'nix flake update && git commit flake.lock -m "nix: update flake sources to $(nix flake metadata --json | jq '.locks.nodes.nixpkgs.locked.rev' --raw-output | cut -c1-7)" && FLAKE=$PWD nh os switch'