2024-07-17 00:08:35 +03:00
|
|
|
{ lib, ... }:
|
2023-09-03 22:18:50 +03:00
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
t = {
|
|
|
|
string = default: mkOption {
|
|
|
|
type = types.str;
|
|
|
|
inherit default;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options.age.secrets = mkOption {
|
|
|
|
type = types.attrsOf (types.submodule ({ name, config, ... }: {
|
|
|
|
options = {
|
|
|
|
file = mkSinkUndeclaredOptions {};
|
|
|
|
owner = t.string "root";
|
|
|
|
group = t.string "root";
|
|
|
|
mode = t.string "400";
|
|
|
|
path = t.string "/etc/dummy-secrets/${name}";
|
|
|
|
};
|
|
|
|
}));
|
|
|
|
};
|
|
|
|
}
|