feat(site): add preview option schema

This commit is contained in:
Lewis Wynne 2026-04-07 22:54:16 +01:00
parent dfd28d637a
commit df70d61664

View file

@ -85,6 +85,27 @@ let
default = [ "forgejo.service" ]; default = [ "forgejo.service" ];
description = "Systemd units to wait for before building."; description = "Systemd units to wait for before building.";
}; };
preview = {
enable = lib.mkEnableOption "TinyAuth-protected preview of this site";
branch = mkOption {
type = types.str;
default = "preview";
};
domain = mkOption {
type = types.str;
default = "0${name}.ily.rs";
description = "Preview domain. Defaults to 0<name>.ily.rs.";
};
port = mkOption {
type = types.nullOr types.port;
default = null;
description = "Port for preview Node.js server. Required when parent static = false.";
};
};
}; };
}); });