Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Oct 15, 2024
1 parent 1cdf620 commit 97caf83
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions repack/reuse-cert.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,17 @@ reIf (
acc
// {
${i.name} = {
serviceConfig.BindReadOnlyPaths = lib.mkIf i.cond [
"-/var/lib/caddy/certificates/acme-v02.api.letsencrypt.org-directory/"
];
serviceConfig.BindReadOnlyPaths = lib.mkIf i.cond (
map
(
s:
"-/var/lib/caddy/certificates/acme-v02.api.letsencrypt.org-directory/wildcard_.nyaw.xyz/wildcard_.nyaw.xyz.${s}"
)
[
"key"
"crt"
]
);
};
}
) { } nameCondPair)
Expand Down

0 comments on commit 97caf83

Please sign in to comment.