diff options
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; + }; + }; + }; + }; +} |
