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, ... }:
with lib;{
options.elss.server.acme.staging = mkEnableOption "Whether to use the staging or the default server for acme";
config =
let
cfg = config.elss.server;

View File

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

View File

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