diff options
| author | scouckel <james.krinsky@gmail.com> | 2026-04-02 20:49:34 -0400 |
|---|---|---|
| committer | scouckel <james.krinsky@gmail.com> | 2026-04-02 20:49:34 -0400 |
| commit | 50044b7a87bc9f59452855a96a2013c9b000a0a1 (patch) | |
| tree | c00948706d76ab9b9eceb051c4b1c45d16dc7e3d /modules/lib/hostOptions.nix | |
| parent | eae1e605a04e7e78cac7052a5cc284de5f9ee87f (diff) | |
big work done
Diffstat (limited to 'modules/lib/hostOptions.nix')
| -rw-r--r-- | modules/lib/hostOptions.nix | 41 |
1 files changed, 41 insertions, 0 deletions
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; + }; + }; + }; + }; +} |
