summaryrefslogtreecommitdiffstats
path: root/tv/2configs/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-10-05 23:11:27 +0200
committertv <tv@krebsco.de>2017-10-05 23:11:27 +0200
commitedeb11956553242749a35c9459b45c7bb079881e (patch)
treed834716d74d97a97f47892bebaa75335a166d334 /tv/2configs/default.nix
parentc9c5fa7c872778f81868e4f30f9abcac9cd2f74d (diff)
tv: add deploy alias
Diffstat (limited to 'tv/2configs/default.nix')
-rw-r--r--tv/2configs/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix
index 9ad0253a3..f418b9ff0 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";