Getting stuff right the first (few) time(s) is hard

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2024-01-18 21:27:57 +01:00
parent d7c2cfa959
commit 2ee4958bdb
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
2 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ elib, vars, ... }:
{ elib, config', vars, ... }:
let
inherit (elib)
nfsVolume
@ -36,6 +36,7 @@ in
vars = {
flake_ref = "${vars.flake_host}?rev=${vars.flake_rev}&ref=${vars.flake_ref}";
flake_sha = vars.flake_sha;
store_path = builtins.unsafeDiscardStringContext config'.flake.nixngConfigurations.gitea.config.system.build.toplevel;
};
};
}

View file

@ -6,6 +6,10 @@ variable "flake_sha" {
type = string
}
variable "store_path" {
type =string
}
job "gitea" {
datacenters = [ "homelab-1" ]
type = "service"
@ -80,7 +84,8 @@ job "gitea" {
config {
nix_flake_ref = "${var.flake_ref}#nixngConfigurations.gitea.config.system.build.toplevel"
nix_flake_sha = var.flake_sha
nix_flake_sha = var.flake_sha
nix_flake_store_path = var.store_path
entrypoint = [ "init" ]
# mounts = [