[Services] Added modular service configuration + opt-in jupyterhub server

This commit is contained in:
Antoine Viallon 2022-02-22 23:04:10 +01:00
parent 771d557a83
commit cab07f3d14
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
3 changed files with 70 additions and 0 deletions

View file

@ -22,6 +22,11 @@ let
settings)
);
in {
imports = [
./services
];
options.aviallon.services = {
enable = mkOption {
default = true;
@ -119,5 +124,12 @@ in {
services.avahi.nssmdns = true; # .lan/.local resolution
services.avahi.publish.enable = true;
services.avahi.publish.hinfo = true; # Whether to register a mDNS HINFO record which contains information about the local operating system and CPU.
services.nginx = {
recommendedProxySettings = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
};
};
}