aboutsummaryrefslogtreecommitdiff
path: root/modules/homelab/domain.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/homelab/domain.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/homelab/domain.nix b/modules/homelab/domain.nix
new file mode 100644
index 0000000..2f0acfa
--- /dev/null
+++ b/modules/homelab/domain.nix
@@ -0,0 +1,17 @@
+{ lib, config, self, ... }:
+let
+ inherit (builtins) readFile fromTOML;
+in
+{
+ options = with lib; {
+ homelab.domain = mkOption {
+ type = types.str;
+ default = null;
+ description = "Domain";
+ };
+ };
+
+ config = {
+ homelab.domain = (fromTOML (readFile "${self}/configs/homelab.toml")).domain;
+ };
+}