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