aboutsummaryrefslogtreecommitdiff
path: root/modules/hosts/server/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hosts/server/default.nix')
-rw-r--r--modules/hosts/server/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/hosts/server/default.nix b/modules/hosts/server/default.nix
new file mode 100644
index 0000000..ca3ca4f
--- /dev/null
+++ b/modules/hosts/server/default.nix
@@ -0,0 +1,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
+ ];
+}