.
This commit is contained in:
parent
190287d071
commit
0221cc8ef5
1 changed files with 50 additions and 11 deletions
61
flake.nix
61
flake.nix
|
|
@ -35,20 +35,59 @@
|
||||||
in {
|
in {
|
||||||
options.services.calDavToCsv = {
|
options.services.calDavToCsv = {
|
||||||
enable = lib.mkEnableOption "calDavToCsv";
|
enable = lib.mkEnableOption "calDavToCsv";
|
||||||
|
settings = lib.mkOption {
|
||||||
config = lib.mkOption {
|
description = ''
|
||||||
type = lib.types.attrs;
|
Your config as an attribute set
|
||||||
calDavToCsv = {
|
'';
|
||||||
calDAV = {
|
default = { };
|
||||||
address = "localhost:5232";
|
#TODO: provide example
|
||||||
username = "username";
|
example = ''
|
||||||
password = "password";
|
{
|
||||||
passwordFile = "/path/to/password";
|
}
|
||||||
|
'';
|
||||||
|
type = lib.types.submodule {
|
||||||
|
freeformType = lib.format.type;
|
||||||
|
caldav = {
|
||||||
|
address = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "tcp://:5232/";
|
||||||
|
example =
|
||||||
|
"unix:///var/run/authelia.sock?path=authelia&umask=0117";
|
||||||
|
description = "Address of the caldav calendar";
|
||||||
|
};
|
||||||
|
username = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
example = "John-doe";
|
||||||
|
description = "Username of the caldav calendar";
|
||||||
|
};
|
||||||
|
password = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
example = "unsafe-password";
|
||||||
|
description =
|
||||||
|
"Password of the caldav calendar, NOT RECOMMENDED, use passwordFile instead !";
|
||||||
|
};
|
||||||
|
passwordFile = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
example = "/var/lib/calDavToCsv/caldavPassword";
|
||||||
|
description =
|
||||||
|
"Password of the caldav calendar, NOT RECOMMENDED, use passwordFile instead !";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
server = { port = 8000; };
|
|
||||||
};
|
};
|
||||||
description = "User-defined configuration for the service";
|
|
||||||
};
|
};
|
||||||
|
# config = lib.mkOption {
|
||||||
|
# type = lib.types.attrs;
|
||||||
|
# calDavToCsv = {
|
||||||
|
# calDAV = {
|
||||||
|
# address = "localhost:5232";
|
||||||
|
# username = "username";
|
||||||
|
# password = "password";
|
||||||
|
# passwordFile = "/path/to/password";
|
||||||
|
# };
|
||||||
|
# server = { port = 8000; };
|
||||||
|
# };
|
||||||
|
# description = "User-defined configuration for the service";
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
# options.NixosModule = {
|
# options.NixosModule = {
|
||||||
# enable = lib.mkEnableOption "Enable calDAVtoCSV service";
|
# enable = lib.mkEnableOption "Enable calDAVtoCSV service";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue