feat: added internal accessible argument to httpd and network-services configuration

This commit is contained in:
Ceferino Patino 2026-02-14 19:49:06 -06:00
commit 480b6105af
Signed by: c4patino
SSH key fingerprint: SHA256:9fQ9TsujGrdNNi76mnsu63v7dS5JOmHRZEqBOl49OR8
2 changed files with 7 additions and 2 deletions

View file

@ -35,7 +35,12 @@ in {
options.public = mkOption {
type = bool;
default = false;
description = "Whether the service should be publicly accessible.";
description = "Whether the service should be publicly accessible over *.cpatino.com.";
};
options.internal = mkOption {
type = bool;
default = false;
description = "Whether the service should be internally accessible over *.yumeami.sh.";
};
});
default = {};

View file

@ -135,7 +135,7 @@ in {
}
(networkingCfg.network-services
|> filterAttrs (_: svc: svc.host == hostName)
|> filterAttrs (_: svc: svc.host == hostName && svc.internal)
|> mapAttrsToList (mkVirtualHost {
domain = "*.yumeami.sh";
useSSL = true;