Merge branch 'refactor'
This commit is contained in:
commit
ee1ed3b88e
8 changed files with 91 additions and 38 deletions
17
utils.nix
17
utils.nix
|
|
@ -1,4 +1,4 @@
|
|||
{ inputs }:
|
||||
{ inputs, lib }:
|
||||
let
|
||||
inherit (inputs)
|
||||
self
|
||||
|
|
@ -172,4 +172,19 @@ in
|
|||
}
|
||||
];
|
||||
};
|
||||
|
||||
# Nginx virtual host utilities
|
||||
mkNginxVHosts =
|
||||
{
|
||||
acmeHost,
|
||||
domains,
|
||||
}:
|
||||
let
|
||||
commonVHostConfig = {
|
||||
useACMEHost = acmeHost;
|
||||
forceSSL = true;
|
||||
kTLS = true;
|
||||
};
|
||||
in
|
||||
lib.mapAttrs (_: lib.recursiveUpdate commonVHostConfig) domains;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue