25 lines
475 B
Nix
25 lines
475 B
Nix
{ lib, ... }:
|
|
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}";
|
|
};
|
|
}));
|
|
};
|
|
}
|