tadpole: Assert that nginx is running when using ppp.pm-site
This commit is contained in:
@@ -6,8 +6,6 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
enabled = config.mod.pppdotpm-site.enable;
|
enabled = config.mod.pppdotpm-site.enable;
|
||||||
|
|
||||||
nginxEnabled = config.mod.nginx.enable;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ inputs.pppdotpm-site.nixosModules.default ];
|
imports = [ inputs.pppdotpm-site.nixosModules.default ];
|
||||||
@@ -18,7 +16,14 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf (enabled && nginxEnabled) {
|
config = lib.mkIf enabled {
|
||||||
|
assertions = [
|
||||||
|
{
|
||||||
|
assertion = config.services.nginx.enable;
|
||||||
|
message = "Option 'config.services.nginx' must be enabled";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
services.pppdotpm-site = {
|
services.pppdotpm-site = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "ppp.pm";
|
domain = "ppp.pm";
|
||||||
|
|||||||
Reference in New Issue
Block a user