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:
parent
db876d1d9f
commit
f4411d1e9b
4 changed files with 194 additions and 0 deletions
41
modules/programs/pimsync/accounts.nix
Normal file
41
modules/programs/pimsync/accounts.nix
Normal 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" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue