Compare commits
2 commits
dd47f04c9b
...
796a55f602
| Author | SHA1 | Date | |
|---|---|---|---|
| 796a55f602 | |||
| f765ba9a39 |
1 changed files with 3 additions and 3 deletions
|
|
@ -65,10 +65,10 @@ in {
|
|||
};
|
||||
sessionPath = [ "$HOME/.local/bin" ];
|
||||
activation = {
|
||||
recordHmGitHash = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
rec-hm-git-hash = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
cd "$HOME/.config/home-manager" || exit 1
|
||||
if [ -z "$(${pkgs.git}/bin/git status --porcelain --untracked-files=no)" ]; then
|
||||
run echo "$(${pkgs.git}/bin/git rev-parse HEAD)" | tee $HOME/.cache/hm-git-hash
|
||||
if [ -z "$(git status --porcelain --untracked-files=no)" ]; then
|
||||
run echo "$(git rev-parse HEAD)" | tee $HOME/.cache/hm-git-hash
|
||||
else
|
||||
run echo '*' | tee $HOME/.cache/hm-git-hash
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue