depot/modules/external-storage/underlay-type.nix

41 lines
793 B
Nix
Raw Permalink Normal View History

2023-08-23 01:55:48 +03:00
{ config, lib, name, ... }:
with lib;
{
options = {
mountpoint = mkOption {
type = types.path;
default = "/mnt/remote-storage-backends/${name}";
};
storageBoxAccount = mkOption {
type = types.str;
# Private Void's main Storage Box
default = "u357754";
};
host = mkOption {
type = types.str;
default = "${config.storageBoxAccount}.your-storagebox.de";
};
subUser = mkOption {
type = types.str;
example = "sub1";
};
credentialsFile = mkOption {
type = types.path;
};
path = mkOption {
type = types.path;
default = "/";
};
uid = mkOption {
type = types.int;
default = 0;
};
gid = mkOption {
type = types.int;
default = 0;
};
2023-08-23 01:55:48 +03:00
};
}