flake: make "nix run .#deploy" deploy to all hosts
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -383,15 +383,26 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
deploy = {
|
deploy = {
|
||||||
|
desko = deployApp "desko" "desko" "switch";
|
||||||
|
desko-light = deployApp "desko-light" "desko" "switch";
|
||||||
lappy = deployApp "lappy" "lappy" "switch";
|
lappy = deployApp "lappy" "lappy" "switch";
|
||||||
lappy-light = deployApp "lappy-light" "lappy" "switch";
|
lappy-light = deployApp "lappy-light" "lappy" "switch";
|
||||||
moby = deployApp "moby" "moby" "switch";
|
moby = deployApp "moby" "moby" "switch";
|
||||||
moby-light = deployApp "moby-light" "moby" "switch";
|
moby-light = deployApp "moby-light" "moby" "switch";
|
||||||
moby-test = deployApp "moby" "moby" "test";
|
moby-test = deployApp "moby" "moby" "test";
|
||||||
servo = deployApp "servo" "servo" "switch";
|
servo = deployApp "servo" "servo" "switch";
|
||||||
|
type = "app";
|
||||||
|
program = builtins.toString (pkgs.writeShellScript "deploy-all" ''
|
||||||
|
nix run '.#deploy.lappy'
|
||||||
|
nix run '.#deploy.moby'
|
||||||
|
nix run '.#deploy.desko'
|
||||||
|
nix run '.#deploy.servo'
|
||||||
|
'');
|
||||||
};
|
};
|
||||||
preDeploy = {
|
preDeploy = {
|
||||||
# build the host and copy the runtime closure to that host, but don't activate it.
|
# build the host and copy the runtime closure to that host, but don't activate it.
|
||||||
|
desko = deployApp "desko" "desko" null;
|
||||||
|
desko-light = deployApp "desko-light" "desko" null;
|
||||||
lappy = deployApp "lappy" "lappy" null;
|
lappy = deployApp "lappy" "lappy" null;
|
||||||
lappy-light = deployApp "lappy-light" "lappy" null;
|
lappy-light = deployApp "lappy-light" "lappy" null;
|
||||||
moby = deployApp "moby" "moby" null;
|
moby = deployApp "moby" "moby" null;
|
||||||
@@ -402,9 +413,11 @@
|
|||||||
# copy the -light variants first; this might be run while waiting on a full build. or the full build failed.
|
# copy the -light variants first; this might be run while waiting on a full build. or the full build failed.
|
||||||
nix run '.#preDeploy.moby-light' -- "$@"
|
nix run '.#preDeploy.moby-light' -- "$@"
|
||||||
nix run '.#preDeploy.lappy-light' -- "$@"
|
nix run '.#preDeploy.lappy-light' -- "$@"
|
||||||
|
nix run '.#preDeploy.desko-light' -- "$@"
|
||||||
nix run '.#preDeploy.lappy' -- "$@"
|
nix run '.#preDeploy.lappy' -- "$@"
|
||||||
nix run '.#preDeploy.servo' -- "$@"
|
nix run '.#preDeploy.servo' -- "$@"
|
||||||
nix run '.#preDeploy.moby' -- "$@"
|
nix run '.#preDeploy.moby' -- "$@"
|
||||||
|
nix run '.#preDeploy.desko' -- "$@"
|
||||||
'');
|
'');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user