summary refs log tree commit diff
path: root/update.sh
blob: a277a4ed923e499ee5a9e0e5e74b9a0c84340bc5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env sh

if [ -d "nixpkgs" ]; then
    cd nixpkgs
    git remote add upstream https://github.com/NixOS/nixpkgs || git remote set-url upstream https://github.com/NixOS/nixpkgs
    git fetch --all -v
    git rebase upstream/nixos-unstable -v && git push --force
    cd ..
fi

nix flake update
./build.sh / $HOSTNAME