chore: update 'flakeup' alias to include nixpkgs hash in commit message

This commit is contained in:
Nico 2025-05-03 16:15:59 +10:00
parent db6cd7e60d
commit 5c11925307

2
.envrc
View file

@ -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'