depot/packages/checks/modules/nixos/age-dummy-secrets/options.nix

26 lines
475 B
Nix
Raw Permalink Normal View History

2024-07-17 00:08:35 +03:00
{ 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}";
};
}));
};
}