diff options
author | lassulus <git@lassul.us> | 2023-09-07 19:00:57 +0200 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-09-07 19:00:57 +0200 |
commit | 083229d0211096daec08673f743ccc45b1d8a0ac (patch) | |
tree | 9709826607eecad84a908e0a10d9da76dab7a2ee /krebs/3modules/exim-smarthost.nix | |
parent | 39c4ee8f921da4ad2c2445e46a86310ecf7d9a13 (diff) |
krebs: <secret -> krebs.secret.directory
Diffstat (limited to 'krebs/3modules/exim-smarthost.nix')
-rw-r--r-- | krebs/3modules/exim-smarthost.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/krebs/3modules/exim-smarthost.nix b/krebs/3modules/exim-smarthost.nix index 093ae2030..4e42ce72e 100644 --- a/krebs/3modules/exim-smarthost.nix +++ b/krebs/3modules/exim-smarthost.nix @@ -20,14 +20,14 @@ let }; dkim = mkOption { - type = types.listOf (types.submodule ({ config, ... }: { + type = types.listOf (types.submodule (dkim: { options = { domain = mkOption { type = types.str; }; private_key = mkOption { type = types.absolute-pathname; - default = toString <secrets> + "/${config.domain}.dkim.priv"; + default = "${config.krebs.secret.directory}/${dkim.config.domain}.dkim.priv"; defaultText = "‹secrets/‹domain›.dkim.priv›"; }; selector = mkOption { |