Add deploy script
This commit is contained in:
parent
0563b14c68
commit
09c772514c
|
@ -1,4 +1,3 @@
|
||||||
# Deploy with: nix build -f ./deploy.nix HOSTNAME && ./result
|
|
||||||
let
|
let
|
||||||
sources = import ./nix/sources.nix;
|
sources = import ./nix/sources.nix;
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,11 @@ let
|
||||||
git diff --exit-code -s nix/sources.json && echo "Already up to date." && exit 0
|
git diff --exit-code -s nix/sources.json && echo "Already up to date." && exit 0
|
||||||
git commit -m "Update sources" nix/sources.json
|
git commit -m "Update sources" nix/sources.json
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
deploy = ''
|
||||||
|
set -e
|
||||||
|
$(nix-build --no-out-link deploy.nix -A "$1")
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
|
|
Loading…
Reference in a new issue