diff options
author | tv <tv@krebsco.de> | 2017-10-05 23:11:27 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-10-05 23:11:27 +0200 |
commit | 288f895abbf1ada7d5cc3979fe51ac29c3148657 (patch) | |
tree | 04d739936bf419124785f206739da065e0a1a8da /tv/2configs | |
parent | ca64b93754a857355b08fbf66d023bc10de91bbc (diff) |
tv: add deploy alias
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix index 9ad0253..f418b9f 100644 --- a/tv/2configs/default.nix +++ b/tv/2configs/default.nix @@ -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"; |