lasdjklasdjkl
This commit is contained in:
parent
217c821750
commit
759cdbbddd
8
.envrc
8
.envrc
|
@ -4,8 +4,14 @@ git config --local core.hooksPath "$PWD"/.githooks
|
||||||
test -d .direnv || mkdir -p .direnv
|
test -d .direnv || mkdir -p .direnv
|
||||||
now="$(date +%Y-%m-%d)"
|
now="$(date +%Y-%m-%d)"
|
||||||
if ! test -s .direnv/pull-date || test "$now" != "$(cat .direnv/pull-date)"; then
|
if ! test -s .direnv/pull-date || test "$now" != "$(cat .direnv/pull-date)"; then
|
||||||
|
git checkout -- flake.lock
|
||||||
git pull --rebase --autostash
|
git pull --rebase --autostash
|
||||||
nix flake update
|
nix flake lock \
|
||||||
|
--update-input nixpkgs \
|
||||||
|
--update-input unstable \
|
||||||
|
--update-input home-manager \
|
||||||
|
--update-input nixos-hardware \
|
||||||
|
--update-input pbsds-papers
|
||||||
echo "$now" > .direnv/pull-date
|
echo "$now" > .direnv/pull-date
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue