From dee7e2e5e9eed9dcacdadbe1ec0266cb8a0c4cea Mon Sep 17 00:00:00 2001 From: Ahwx Date: Sat, 22 Mar 2025 22:47:09 +0100 Subject: [PATCH] feat: defines machine-specific variables --- hosts/dandelion/variables.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 hosts/dandelion/variables.nix diff --git a/hosts/dandelion/variables.nix b/hosts/dandelion/variables.nix new file mode 100644 index 0000000..241d088 --- /dev/null +++ b/hosts/dandelion/variables.nix @@ -0,0 +1,17 @@ +{ + lib, + config, + ... +}: let + inherit (lib) mkOption types; + inherit (config.liv) variables; +in { + options.liv.variables.dandelion = { + thisMachine = mkOption { + default = "dandelion.srv.${variables.primaryDomain}"; + type = types.str; + readOnly = true; + description = "Domain of this specific machine"; + }; + }; +}