tadpole: Host heldtenkelt.se
Add the heldtenkelt.se-site flake as an input and serve it with nginx on tadpole, with its own ACME certificate.
This commit is contained in:
1 parent
6e86006dc2
commit
449e3cbfdf
5 files changed
+67
No files matched your search
@@ -0,0 +1,33 @@
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
enabled = config.mod.heldtenkeltdotse-site.enable;
|
||||
in
|
||||
{
|
||||
imports = [ inputs.heldtenkeltdotse-site.nixosModules.default ];
|
||||
|
||||
options = {
|
||||
mod.heldtenkeltdotse-site = {
|
||||
enable = lib.mkEnableOption "enable heldtenkelt.se site";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf enabled {
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.services.nginx.enable;
|
||||
message = "Option 'config.services.nginx' must be enabled";
|
||||
}
|
||||
];
|
||||
|
||||
services.heldtenkeltdotse-site = {
|
||||
enable = true;
|
||||
domain = "heldtenkelt.se";
|
||||
useACMEHost = "heldtenkelt.se";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user