From a6f9533790b9bfb73f1e531fcef6303642e38983 Mon Sep 17 00:00:00 2001 From: triethyl Date: Tue, 2 Sep 2025 15:21:50 -0400 Subject: homelab: started creating homelab --- docs/home-server.md | 5 +++-- nixos/modules/default.nix | 1 + nixos/modules/homelab/cloud/default.nix | 1 + nixos/modules/homelab/cloud/syncthing.nix | 8 ++++++++ nixos/modules/homelab/core/default.nix | 1 + nixos/modules/homelab/default.nix | 11 +++++++++++ 6 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 nixos/modules/homelab/cloud/default.nix create mode 100644 nixos/modules/homelab/cloud/syncthing.nix create mode 100644 nixos/modules/homelab/core/default.nix create mode 100644 nixos/modules/homelab/default.nix 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"; + }; +} -- cgit v1.2.3