tv: add deploy alias
This commit is contained in:
parent
c9c5fa7c87
commit
edeb119565
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue