forked from Fediversity/Fediversity
simplify deployment/nixos.nix
This commit is contained in:
parent
56cf89d926
commit
22408f98db
2 changed files with 11 additions and 9 deletions
|
@ -58,10 +58,10 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
extraTestScript = ''
|
extraTestScript = ''
|
||||||
with subtest("ssh: Check the status before deployment"):
|
with subtest("Check the status before deployment"):
|
||||||
ssh.fail("hello 1>&2")
|
ssh.fail("hello 1>&2")
|
||||||
|
|
||||||
with subtest("ssh: Run the deployment"):
|
with subtest("Run the deployment"):
|
||||||
deployer.succeed("""
|
deployer.succeed("""
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
|
|
@ -11,13 +11,15 @@ let
|
||||||
};
|
};
|
||||||
modules = [ configuration ];
|
modules = [ configuration ];
|
||||||
};
|
};
|
||||||
os = {
|
toplevel =
|
||||||
inherit (eval) pkgs config options;
|
{
|
||||||
system = eval.config.system.build.toplevel;
|
inherit (eval) pkgs config options;
|
||||||
inherit (eval.config.system.build) vm vmWithBootLoader;
|
system = eval.config.system.build.toplevel;
|
||||||
};
|
inherit (eval.config.system.build) vm vmWithBootLoader;
|
||||||
|
}
|
||||||
|
.config.system.build.toplevel;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
drv_path = os.config.system.build.toplevel.drvPath;
|
drv_path = toplevel.drvPath;
|
||||||
out_path = os.config.system.build.toplevel;
|
out_path = toplevel;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue