mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
project-wide: A move to targets, getting closer to production
This commit is contained in:
parent
bcfdc68b30
commit
1ce1328695
16 changed files with 150 additions and 110 deletions
|
|
@ -5,12 +5,10 @@ with lib;
|
|||
{
|
||||
options = {
|
||||
deploy = {
|
||||
groups = mkOption {
|
||||
type = with types; listOf str;
|
||||
default = [ ];
|
||||
target = mkOption {
|
||||
type = with types; str;
|
||||
default = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = { deploy.groups = [ "all" ]; };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
{ config, lib, ... }: with lib; let
|
||||
{ config, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.deploy.tf;
|
||||
unmergedValues = types.mkOptionType {
|
||||
name = "unmergedValues";
|
||||
|
|
@ -14,9 +16,7 @@ in {
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
};
|
||||
out.set = mkOption {
|
||||
type = types.unspecified;
|
||||
};
|
||||
out.set = mkOption { type = types.unspecified; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -25,6 +25,6 @@ in {
|
|||
deploy.tf = {
|
||||
attrs = [ "out" "attrs" ];
|
||||
out.set = removeAttrs cfg cfg.attrs;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue