Verified Commit 47dc3371 authored by GovanifY's avatar GovanifY
Browse files

components/web: add option default

parent e65def55
......@@ -33,6 +33,7 @@ let
(if attr.root == null then
"/var/www/${name}" else attr.root) else null;
locations = if (attr.return != null) then { "/".return = attr.return; } else { };
default = attr.default;
}))
cfg.domains;
......@@ -89,6 +90,11 @@ in
default = null;
description = "Return code that this domain should return. Useful for maintenance.";
};
default = mkOption {
type = types.bool;
default = false;
description = "Sets the default domain to show when no correct domain name is given.";
};
git = {
user = mkOption {
type = types.nullOr types.str;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment