1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 08:31:03 +01:00

pimsync: init module

This adds a pimsync module using the rather verbose but feature-complete new SCFG generator.
This commit is contained in:
Anton Mosich 2025-04-19 01:06:08 +02:00 committed by Matthieu Coudron
parent db876d1d9f
commit f4411d1e9b
4 changed files with 194 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ 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" ];
}
];
};
};
}