mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
32 lines
665 B
Nix
32 lines
665 B
Nix
{ config, lib, ... }: with lib; let
|
|
secretType = types.submodule ({ name, ... }: {
|
|
options = {
|
|
path = mkOption { type = types.str; };
|
|
field = mkOption {
|
|
type = types.str;
|
|
default = "";
|
|
};
|
|
};
|
|
});
|
|
repoSecretType = types.submodule ({ name, ... }: {
|
|
options = {
|
|
source = mkOption {
|
|
type = types.path;
|
|
};
|
|
text = mkOption {
|
|
type = types.str;
|
|
};
|
|
};
|
|
});
|
|
in {
|
|
options.secrets = {
|
|
variables = mkOption {
|
|
type = types.attrsOf secretType;
|
|
default = { };
|
|
};
|
|
repo = mkOption {
|
|
type = types.attrsOf repoSecretType;
|
|
default = { };
|
|
};
|
|
};
|
|
}
|