forked from fediversity/fediversity
rm optional from deployer
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
8e17e8bc9b
commit
9ac85993e0
2 changed files with 14 additions and 15 deletions
|
|
@ -74,10 +74,10 @@ in
|
|||
## configuration and the store paths needed to build it and
|
||||
## dump them in `system.extraDependencies`.
|
||||
machine =
|
||||
(pkgs.nixos (
|
||||
[
|
||||
(pkgs.nixos [
|
||||
./targetNode.nix
|
||||
# ../../../infra/common/nixos/repart.nix
|
||||
"${modulesPath}/../lib/testing/nixos-test-base.nix"
|
||||
config.system.extraDependenciesFromModule
|
||||
{
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
|
@ -85,9 +85,7 @@ in
|
|||
enableAcme = config.enableAcme;
|
||||
acmeNodeIP = config.acmeNodeIP;
|
||||
}
|
||||
]
|
||||
++ (lib.optional config.useFlake "${modulesPath}/../lib/testing/nixos-test-base.nix")
|
||||
)).config;
|
||||
]).config;
|
||||
|
||||
in
|
||||
[
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
config,
|
||||
hostPkgs,
|
||||
sources,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
|
|
@ -112,7 +113,7 @@ in
|
|||
(genAttrs config.targetMachines (_: {
|
||||
imports = [
|
||||
./targetNode.nix
|
||||
] ++ (lib.optional config.useFlake "${sources.nixpkgs}/nixos/lib/testing/nixos-test-base.nix");
|
||||
] ++ (lib.optional config.useFlake "${modulesPath}/../lib/testing/nixos-test-base.nix");
|
||||
_module.args = { inherit inputs sources; };
|
||||
enableAcme = config.enableAcme;
|
||||
acmeNodeIP = if config.enableAcme then config.nodes.acme.networking.primaryIPAddress else null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue