Add deploy script

This commit is contained in:
Simon Bruder 2020-12-17 11:27:53 +01:00
parent 0563b14c68
commit 09c772514c
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,3 @@
# Deploy with: nix build -f ./deploy.nix HOSTNAME && ./result
let
sources = import ./nix/sources.nix;

View file

@ -20,6 +20,11 @@ let
git diff --exit-code -s nix/sources.json && echo "Already up to date." && exit 0
git commit -m "Update sources" nix/sources.json
'';
deploy = ''
set -e
$(nix-build --no-out-link deploy.nix -A "$1")
'';
};
in
pkgs.mkShell {