cluster/services/certificates: give kanidm access to internal cert
This commit is contained in:
parent
bd94d0d868
commit
a6d0b92a54
1 changed files with 10 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
||||||
{ tools, ... }:
|
{ config, lib, pkgs, tools, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (tools.meta) domain;
|
inherit (tools.meta) domain;
|
||||||
|
|
||||||
|
extraGroups = [ "nginx" ]
|
||||||
|
++ lib.optional config.services.kanidm.enableServer "kanidm";
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -10,5 +13,11 @@ in
|
||||||
extraDomainNames = [ "*.internal.${domain}" ];
|
extraDomainNames = [ "*.internal.${domain}" ];
|
||||||
dnsProvider = "pdns";
|
dnsProvider = "pdns";
|
||||||
group = "nginx";
|
group = "nginx";
|
||||||
|
postRun = ''
|
||||||
|
${pkgs.acl}/bin/setfacl -Rb out/
|
||||||
|
${lib.concatStringsSep "\n" (
|
||||||
|
map (group: "${pkgs.acl}/bin/setfacl -Rm g:${group}:rX out/") extraGroups
|
||||||
|
)}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue