feat(modules): Introduce per node module import from meta
All checks were successful
Check meta / check_meta (push) Successful in 25s
Check meta / check_dns (push) Successful in 46s
build configuration / build_vault01 (push) Successful in 1m6s
build configuration / build_storage01 (push) Successful in 1m10s
build configuration / build_compute01 (push) Successful in 1m15s
build configuration / build_web02 (push) Successful in 53s
lint / check (push) Successful in 26s
build configuration / build_rescue01 (push) Successful in 49s
build configuration / build_web01 (push) Successful in 1m34s
build configuration / push_to_cache (push) Successful in 2m22s
All checks were successful
Check meta / check_meta (push) Successful in 25s
Check meta / check_dns (push) Successful in 46s
build configuration / build_vault01 (push) Successful in 1m6s
build configuration / build_storage01 (push) Successful in 1m10s
build configuration / build_compute01 (push) Successful in 1m15s
build configuration / build_web02 (push) Successful in 53s
lint / check (push) Successful in 26s
build configuration / build_rescue01 (push) Successful in 49s
build configuration / build_web01 (push) Successful in 1m34s
build configuration / push_to_cache (push) Successful in 2m22s
This commit is contained in:
parent
46b550781e
commit
c47437116b
3 changed files with 26 additions and 8 deletions
|
@ -26,6 +26,8 @@
|
|||
|
||||
stateVersion = "23.05";
|
||||
vm-cluster = "Hyperviseur NPS";
|
||||
|
||||
nix-modules = [ "services/crabfit" ];
|
||||
};
|
||||
|
||||
compute01 = {
|
||||
|
@ -53,6 +55,8 @@
|
|||
storage01 = {
|
||||
site = "pav01";
|
||||
stateVersion = "23.11";
|
||||
|
||||
nix-modules = [ "services/forgejo-nix-runners" ];
|
||||
};
|
||||
|
||||
vault01 = {
|
||||
|
|
|
@ -95,6 +95,14 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
nix-modules = mkOption {
|
||||
type = listOf str;
|
||||
default = [ ];
|
||||
description = ''
|
||||
List of modules to import from [nix-modules](https://git.hubrecht.ovh/hubrecht/nix-modules).
|
||||
'';
|
||||
};
|
||||
|
||||
admins = mkOption {
|
||||
type = listOf str;
|
||||
default = [ ];
|
||||
|
|
|
@ -32,7 +32,12 @@
|
|||
# pris connaissance de la licence CeCILL, et que vous en avez accepté les
|
||||
# termes.
|
||||
|
||||
{ lib, sources, ... }:
|
||||
{
|
||||
lib,
|
||||
nodeMeta,
|
||||
sources,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports =
|
||||
|
@ -57,11 +62,12 @@
|
|||
"${sources.attic}/nixos/atticd.nix"
|
||||
"${sources.arkheon}/module.nix"
|
||||
]
|
||||
++ ((import sources.nix-modules { inherit lib; }).importModules [
|
||||
"age-secrets"
|
||||
"services/crabfit"
|
||||
"services/forgejo-nix-runners"
|
||||
"services/bupstash"
|
||||
"services/systemd-notify"
|
||||
]);
|
||||
++ ((import sources.nix-modules { inherit lib; }).importModules (
|
||||
[
|
||||
"age-secrets"
|
||||
"services/bupstash"
|
||||
"services/systemd-notify"
|
||||
]
|
||||
++ nodeMeta.nix-modules
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue