dotfiles/update.sh
chayleaf 4f531a83a9 merge into a single flake
However, Nix has some annoying store semantics when integrating with
.git repos, so I move .git to .git.bak whenever I'm not working with
git.
2023-05-25 04:39:57 +07:00

12 lines
484 B
Bash
Executable file

#!/usr/bin/env bash
cp ~/.config/nixpkgs/overlays.nix ./overlays.nix || echo "probably no overlays exist"
nix flake update
nvfetcher \
-o ./home/_sources \
-c ./home/nvfetcher.toml || echo "failed to update nvfetcher sources"
mozilla-addons-to-nix \
./home/pkgs/firefox-addons/addons.json \
./home/pkgs/firefox-addons/generated.nix || echo "failed to update firefox addons"
s nixos-rebuild switch --flake . || sudo nixos-rebuild switch --flake .
home-manager switch --flake .