aboutsummaryrefslogtreecommitdiff
path: root/modules/hosts/server/default.nix
blob: ca3ca4fb6f1fc33a8063f0a97ef9f166d5037ea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  lib,
  ...
}:
let
  inherit (lib) mkOption types;
in
{
  options.nx.server = {
    enable = mkOption {
      description = "Set this host as server";
      type = types.bool;
      default = false;
    };
    timeZone = mkOption {
      description = "Time Zone of the server";
      type = types.str;
      default = "Europe/Berlin";
    };
  };

  imports = [
    ./openssh
    ./nginx
    ./fail2ban
    ./nextcloud
    ./site
  ];
}