From 50044b7a87bc9f59452855a96a2013c9b000a0a1 Mon Sep 17 00:00:00 2001 From: scouckel Date: Thu, 2 Apr 2026 20:49:34 -0400 Subject: big work done --- modules/lib/hostOptions.nix | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 modules/lib/hostOptions.nix (limited to 'modules/lib/hostOptions.nix') diff --git a/modules/lib/hostOptions.nix b/modules/lib/hostOptions.nix new file mode 100644 index 0000000..37a00c8 --- /dev/null +++ b/modules/lib/hostOptions.nix @@ -0,0 +1,41 @@ +{ + flake.nixosModules.hostOptions = {lib, ...}: { + options.hostOptions = { + host = { + name = lib.mkOption { + type = lib.types.str; + }; + }; + user = { + name = lib.mkOption { + type = lib.types.str; + default = "jck"; + }; + email = lib.mkOption { + type = lib.types.str; + default = "jckrinsky@gmail.com"; + }; + }; + server = { + dataPath = lib.mkOption { + type = lib.types.path; + default = "/tank/data/"; + example = "/var/lib/"; + description = "path where you keep all your services' data"; + }; + mediaPath = lib.mkOption { + type = lib.types.path; + default = "/tank/media"; + description = "path where you keep all your media"; + }; + domain = lib.mkOption { + type = lib.types.str; + default = "jckrinsky.net"; + }; + sshKeys = { + type = lib.types.list lib.types.str; + }; + }; + }; + }; +} -- cgit v1.3