mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04: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
|
let
|
||||||
inherit (elib)
|
inherit (elib)
|
||||||
nfsVolume
|
nfsVolume
|
||||||
|
@ -36,6 +36,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 = builtins.unsafeDiscardStringContext config'.flake.nixngConfigurations.gitea.config.system.build.toplevel;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,10 @@ variable "flake_sha" {
|
||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "store_path" {
|
||||||
|
type =string
|
||||||
|
}
|
||||||
|
|
||||||
job "gitea" {
|
job "gitea" {
|
||||||
datacenters = [ "homelab-1" ]
|
datacenters = [ "homelab-1" ]
|
||||||
type = "service"
|
type = "service"
|
||||||
|
@ -81,6 +85,7 @@ job "gitea" {
|
||||||
config {
|
config {
|
||||||
nix_flake_ref = "${var.flake_ref}#nixngConfigurations.gitea.config.system.build.toplevel"
|
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" ]
|
entrypoint = [ "init" ]
|
||||||
|
|
||||||
# mounts = [
|
# mounts = [
|
||||||
|
|
Loading…
Reference in a new issue