2023-02-21 05:20:19 +07:00
|
|
|
#!/usr/bin/env bash
|
2023-05-25 06:24:57 +07:00
|
|
|
cp ~/.config/nixpkgs/overlays.nix ./overlays.nix || (mkdir -p ~/.config/nixpkgs && cp ./overlays.nix ~/.config/nixpkgs)
|
2023-05-25 04:39:57 +07:00
|
|
|
nvfetcher \
|
2023-05-25 06:24:57 +07:00
|
|
|
-o ./pkgs/_sources \
|
|
|
|
-c ./pkgs/nvfetcher.toml || echo "failed to update nvfetcher sources"
|
2023-05-25 04:39:57 +07:00
|
|
|
mozilla-addons-to-nix \
|
2023-05-25 06:24:57 +07:00
|
|
|
./pkgs/firefox-addons/addons.json \
|
|
|
|
./pkgs/firefox-addons/generated.nix || echo "failed to update firefox addons"
|
2023-05-26 00:40:31 +07:00
|
|
|
nix flake update
|
2023-07-28 14:20:21 +07:00
|
|
|
#if [ -z ${SUDO_ASKPASS+x} ]; then
|
|
|
|
# sudo nixos-rebuild switch --flake . --option extra-builtins-file "$(pwd)/extra-builtins.nix"
|
|
|
|
#else
|
|
|
|
# sudo -A nixos-rebuild switch --flake . --option extra-builtins-file "$(pwd)/extra-builtins.nix"
|
|
|
|
#fi
|
|
|
|
#home-manager switch --flake . --option extra-builtins-file "$(pwd)/extra-builtins.nix"
|