wm: add noctalia shell plugins
This commit is contained in:
parent
b9b9bbc998
commit
d1f4d2c281
38 changed files with 1398 additions and 696 deletions
39
system/dev/dn-pre7780/expr/acme.nix
Normal file
39
system/dev/dn-pre7780/expr/acme.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
self,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
serverACMEConfig = self.nixosConfigurations.dn-server.config.security.acme.certs."dnywe.com";
|
||||
inherit (config.sops) secrets;
|
||||
in
|
||||
{
|
||||
users.users.nginx.extraGroups = [ "acme" ];
|
||||
|
||||
sops.secrets = {
|
||||
"acme/cloudflare" = {
|
||||
mode = "0640";
|
||||
};
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
certs."dnywe.com" = {
|
||||
inherit (serverACMEConfig)
|
||||
domain
|
||||
server
|
||||
dnsProvider
|
||||
email
|
||||
dnsResolver
|
||||
dnsPropagationCheck
|
||||
;
|
||||
environmentFile = pkgs.writeText "lego-config" ''
|
||||
LEGO_CA_CERTIFICATES=${config.security.pki.caBundle}
|
||||
'';
|
||||
credentialFiles = {
|
||||
"CLOUDFLARE_DNS_API_TOKEN_FILE" = secrets."acme/cloudflare".path;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue