1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Streamline server module

This commit is contained in:
Stefan Ellmauthaler 2022-07-21 18:27:43 +02:00
parent 536de1fcd5
commit 90770f98a2
Failed to extract signature
3 changed files with 17 additions and 15 deletions

View File

@ -1,6 +1,5 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib;{ with lib;{
options.elss.server.acme.staging = mkEnableOption "Whether to use the staging or the default server for acme";
config = config =
let let
cfg = config.elss.server; cfg = config.elss.server;

View File

@ -1,10 +1,14 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; { with lib; {
options.elss.server.enable = mkEnableOption "Enable Mail, Web, and DB"; options.elss.server = {
options.elss.server.nginx.enable = mkEnableOption "Set up nginx"; acme.staging = mkEnableOption "Whether to use the staging or the default server for acme";
options.elss.server.sql.enable = mkEnableOption "Set up sql (postresql)"; enable = mkEnableOption "Enable Mail, Web, and DB";
options.elss.server.nextcloud.enable = mkEnableOption "Set up nextcloud"; nginx.enable = mkEnableOption "Set up nginx";
options.elss.server.smailserver.enable = mkEnableOption "Set up simple mail server"; sql.enable = mkEnableOption "Set up sql (postresql)";
nextcloud.enable = mkEnableOption "Set up nextcloud";
smailserver.enable = mkEnableOption "Set up simple mail server";
unbound.enable = mkEnableOption "Set unbound dns up";
};
imports = [ imports = [
./acme.nix ./acme.nix

View File

@ -1,6 +1,5 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; { with lib; {
options.elss.server.unbound.enable = mkEnableOption "Set unbound dns up";
config = config =
let let
cfg = config.elss.server.unbound; cfg = config.elss.server.unbound;