Justfile: implement update-remote-device

This bumps the versions for the remote device, attempts a rebuild and
commits the resulting versions if the rebuild succeeded.
This commit is contained in:
steveej 2019-03-06 13:52:23 +01:00
parent 5f2f499471
commit 2c9da1f12e
2 changed files with 47 additions and 4 deletions

View file

@ -0,0 +1,15 @@
{
channelsNixosStable = {
ref = "nixos-19.03";
rev = "<% git ls-remote https://github.com/nixos/nixpkgs-channels nixos-19.03 | awk '{ print $1 }' | tr -d '\n' -%>";
};
channelsNixosUnstable = {
ref = "nixos-unstable";
rev = "<% git ls-remote https://github.com/nixos/nixpkgs-channels nixos-unstable | awk '{ print $1 }' | tr -d '\n' -%>";
};
homeManagerModule = {
url = "https://github.com/rycee/home-manager";
ref = "master";
rev = "<% git ls-remote https://github.com/rycee/home-manager.git master | awk '{ print $1 }' | tr -d '\n' -%>";
};
}