diff options
author | jeschli <jeschli@gmail.com> | 2018-09-25 19:45:44 +0200 |
---|---|---|
committer | jeschli <jeschli@gmail.com> | 2018-09-25 19:45:44 +0200 |
commit | f8c421fed29645cb12648f3333ba8b629fa57bbb (patch) | |
tree | b4d63c2620071da7e90b8c051df0f5a12735fcc9 /jeschli/1systems/brauerei/config.nix | |
parent | 228d4a919b558ed1e5878ae78ed2a5ab9b8b26d4 (diff) |
jeschli brauerei: krops deploy
Diffstat (limited to 'jeschli/1systems/brauerei/config.nix')
-rw-r--r-- | jeschli/1systems/brauerei/config.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jeschli/1systems/brauerei/config.nix b/jeschli/1systems/brauerei/config.nix index 4cd544a..3d21b9e 100644 --- a/jeschli/1systems/brauerei/config.nix +++ b/jeschli/1systems/brauerei/config.nix @@ -37,6 +37,11 @@ cd ~/stockholm exec nix-shell -I stockholm="$PWD" --run 'deploy --system="brauerei"' ''; + deploy = pkgs.writeDash "deploy" '' + set -eu + export SYSTEM="$1" + $(nix-build $HOME/stockholm/jeschli/krops.nix --no-out-link --argstr name "$SYSTEM" -A deploy) + ''; }; environment.systemPackages = with pkgs; [ |