mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-21 15:54:20 +01:00
Getting stuff right the first (few) time(s) is hard
Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
parent
d7c2cfa959
commit
2ee4958bdb
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue