2024-08-24 01:25:28 +00:00
|
|
|
{ lib, ... }:
|
2024-10-06 19:25:34 +00:00
|
|
|
let
|
|
|
|
inherit (lib) mkEnableOption mkOption types;
|
2024-08-24 01:25:28 +00:00
|
|
|
|
2024-10-06 19:25:34 +00:00
|
|
|
syncType = types.submodule ({ ... }: {
|
|
|
|
options = {
|
|
|
|
remotePath = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
description = "The path to the folder on the cloud to sync.";
|
|
|
|
};
|
2024-08-24 01:25:28 +00:00
|
|
|
|
2024-10-06 19:25:34 +00:00
|
|
|
localPath = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
description = "The path to sync the cloud content to.";
|
|
|
|
};
|
2024-08-24 01:25:28 +00:00
|
|
|
|
2024-10-06 19:25:34 +00:00
|
|
|
virtualFiles = (mkEnableOption "virtual file support") // {
|
|
|
|
default = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
valhalla.windows.users = mkOption {
|
|
|
|
type = types.attrsOf (types.submodule (
|
|
|
|
{ ... }: {
|
|
|
|
options = {
|
|
|
|
nextcloud = {
|
|
|
|
folderSyncs = mkOption {
|
|
|
|
type = types.listOf syncType;
|
|
|
|
description = "The folders to synchronize.";
|
|
|
|
default = [ ];
|
2024-08-24 01:25:28 +00:00
|
|
|
};
|
|
|
|
};
|
2024-10-06 19:25:34 +00:00
|
|
|
};
|
|
|
|
}));
|
2024-08-24 01:25:28 +00:00
|
|
|
};
|
2024-10-06 19:25:34 +00:00
|
|
|
};
|
|
|
|
}
|