diff --git a/deploy.nix b/deploy.nix index 313454e..7468348 100644 --- a/deploy.nix +++ b/deploy.nix @@ -1,4 +1,3 @@ -# Deploy with: nix build -f ./deploy.nix HOSTNAME && ./result let sources = import ./nix/sources.nix; diff --git a/shell.nix b/shell.nix index 93eb166..807aba4 100644 --- a/shell.nix +++ b/shell.nix @@ -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 {