docs: add overview
This commit is contained in:
parent
c55f465ba1
commit
4744a2844c
4 changed files with 133 additions and 27 deletions
|
@ -46,7 +46,7 @@
|
|||
defineGuest = _guestName: guestCfg: {
|
||||
# Add the required datasets to the disko configuration of the machine
|
||||
disko.devices.zpool = mkMerge (flip map (attrValues guestCfg.zfs) (zfsCfg: {
|
||||
${zfsCfg.pool}.datasets.${zfsCfg.dataset} = disko.filesystem zfsCfg.hostMountpoint;
|
||||
${zfsCfg.pool}.datasets.${zfsCfg.dataset} = disko.zfs.filesystem zfsCfg.hostMountpoint;
|
||||
}));
|
||||
|
||||
# Ensure that the zfs dataset exists before it is mounted.
|
||||
|
|
|
@ -52,7 +52,7 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf (config.services.nginx.enable && config.services.nginx.recommendedSetup) {
|
||||
age.secrets."dhparams.pem" = {
|
||||
age.secrets."dhparams.pem" = mkIf (config ? age) {
|
||||
generator.script = "dhparams";
|
||||
mode = "440";
|
||||
group = "nginx";
|
||||
|
@ -71,7 +71,7 @@ in {
|
|||
|
||||
# SSL config
|
||||
sslCiphers = "EECDH+AESGCM:EDH+AESGCM:!aNULL";
|
||||
sslDhparam = config.age.secrets."dhparams.pem".path;
|
||||
sslDhparam = mkIf (config ? age) config.age.secrets."dhparams.pem".path;
|
||||
commonHttpConfig = ''
|
||||
log_format json_combined escape=json '{'
|
||||
'"time": $msec,'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue