Update ingressToothpick to new Nix integration

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-07-10 23:37:54 +02:00
parent f0cf4e1a54
commit 449e73fdba
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
2 changed files with 6 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ elib, secret, vars, ... }: { elib, secret, vars, config', ... }:
let let
inherit (elib) inherit (elib)
nfsVolume nfsVolume
@ -18,6 +18,7 @@ in
vars = { vars = {
flake_ref = "${vars.flake_host}?rev=${vars.flake_rev}&ref=${vars.flake_ref}"; flake_ref = "${vars.flake_host}?rev=${vars.flake_rev}&ref=${vars.flake_ref}";
flake_sha = vars.flake_sha; flake_sha = vars.flake_sha;
store_path = config'.flake.nixngConfigurations.ingressToothpick.config.system.build.toplevel;
upstreams = "\${file(\"${./upstreams.conf}\")}"; upstreams = "\${file(\"${./upstreams.conf}\")}";
}; };
}; };

View file

@ -6,6 +6,10 @@ variable "flake_sha" {
type = string type = string
} }
variable "store_path" {
type = string
}
variable "upstreams" { variable "upstreams" {
type = string type = string
} }