tv: add deploy alias

This commit is contained in:
tv 2017-10-05 23:11:27 +02:00
parent c9c5fa7c87
commit edeb119565
1 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,12 @@ with import <stockholm/lib>;
dmesg = "dmesg -L --reltime";
view = "vim -R";
deploy = pkgs.writeDash "deploy" ''
set -eu
cd ~/stockholm
export SYSTEM="$1"
exec nix-shell -I stockholm="$PWD" --run 'deploy --system="$SYSTEM"'
'';
reload = "systemctl reload";
restart = "systemctl restart";
start = "systemctl start";