mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
This adds a pimsync module using the rather verbose but feature-complete new SCFG generator.
41 lines
1,006 B
Nix
41 lines
1,006 B
Nix
{ lib, ... }:
|
|
|
|
let
|
|
inherit (lib) mkOption;
|
|
inherit (lib.hm.types) SCFGDirectives;
|
|
in
|
|
{
|
|
options.pimsync = {
|
|
enable = lib.mkEnableOption "synchronization using pimsync";
|
|
|
|
extraRemoteStorageDirectives = mkOption {
|
|
type = SCFGDirectives;
|
|
default = [ ];
|
|
description = "Extra directives that should be added under this accounts remote storage directive";
|
|
example = [
|
|
{
|
|
name = "interval";
|
|
params = [ 60 ];
|
|
}
|
|
];
|
|
};
|
|
|
|
extraLocalStorageDirectives = mkOption {
|
|
type = SCFGDirectives;
|
|
default = [ ];
|
|
description = "Extra directives that should be added under this accounts local storage directive";
|
|
};
|
|
|
|
extraPairDirectives = mkOption {
|
|
type = SCFGDirectives;
|
|
default = [ ];
|
|
description = "Extra directives that should be added under this accounts pair directive";
|
|
example = [
|
|
{
|
|
name = "collections";
|
|
params = [ "all" ];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|