project-wide: A move to targets, getting closer to production

This commit is contained in:
kat witch 2021-03-31 00:01:03 +01:00
parent bcfdc68b30
commit 1ce1328695
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
16 changed files with 150 additions and 110 deletions

View file

@ -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" ]; };
}

View file

@ -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;
};
};
};
}