summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/home-server.md5
-rw-r--r--nixos/modules/default.nix1
-rw-r--r--nixos/modules/homelab/cloud/default.nix1
-rw-r--r--nixos/modules/homelab/cloud/syncthing.nix8
-rw-r--r--nixos/modules/homelab/core/default.nix1
-rw-r--r--nixos/modules/homelab/default.nix11
6 files changed, 25 insertions, 2 deletions
diff --git a/docs/home-server.md b/docs/home-server.md
index 3810928..ccf8b2a 100644
--- a/docs/home-server.md
+++ b/docs/home-server.md
@@ -4,7 +4,7 @@
## Programs:
-Categories:
+### Categories:
- core: Uncontainerized services like ssh, backups, and caddy.
- cloud: File storage services like syncthing.
@@ -12,7 +12,8 @@ Categories:
- game: Game servers like minecraft.
- media: Media services like calibre-web, invidious, and plex.
- network: Networking services like Wireguard, firewall, etc.
-### Services
+
+### Services:
#### Uncontainerized:
diff --git a/nixos/modules/default.nix b/nixos/modules/default.nix
index cd7e8d6..c484288 100644
--- a/nixos/modules/default.nix
+++ b/nixos/modules/default.nix
@@ -1,5 +1,6 @@
{...}: {
imports = [
./general-settings
+ ./homelab
];
}
diff --git a/nixos/modules/homelab/cloud/default.nix b/nixos/modules/homelab/cloud/default.nix
new file mode 100644
index 0000000..d4ee9df
--- /dev/null
+++ b/nixos/modules/homelab/cloud/default.nix
@@ -0,0 +1 @@
+{config, pkgs, lib, ...}: {}
diff --git a/nixos/modules/homelab/cloud/syncthing.nix b/nixos/modules/homelab/cloud/syncthing.nix
new file mode 100644
index 0000000..993cf42
--- /dev/null
+++ b/nixos/modules/homelab/cloud/syncthing.nix
@@ -0,0 +1,8 @@
+{config, pkgs, lib, ...}: let
+ cfg = config.homelab.cloud.syncthing;
+in {
+ options.homelab.cloud.syncthing = {
+ enable = lib.mkEnableOption "syncthing";
+
+ };
+}
diff --git a/nixos/modules/homelab/core/default.nix b/nixos/modules/homelab/core/default.nix
new file mode 100644
index 0000000..d4ee9df
--- /dev/null
+++ b/nixos/modules/homelab/core/default.nix
@@ -0,0 +1 @@
+{config, pkgs, lib, ...}: {}
diff --git a/nixos/modules/homelab/default.nix b/nixos/modules/homelab/default.nix
new file mode 100644
index 0000000..5a9a97e
--- /dev/null
+++ b/nixos/modules/homelab/default.nix
@@ -0,0 +1,11 @@
+{config, pkgs, lib, ...}: let
+ cfg = config.homelab;
+in {
+ imports = [
+ ./core
+ ./cloud
+ ];
+ options.homelab = {
+ enable = lib.mkEnableOption "homelab";
+ };
+}