This commit is contained in:
Stuce 2025-11-16 11:20:46 +01:00
parent 049839b64b
commit ca880a61a7

View file

@ -33,8 +33,8 @@
maintainers = with pkgs.lib.maintainers; [ stuce-bot ];
};
};
nixosModules.caldavToCsv = { config, lib, ... }:
let cfg = config.services.caldavToCsv;
nixosModules.calDavToCsv = { config, lib, ... }:
let cfg = config.services.calDavToCsv;
in {
options.calDavtoCSV = {
enable = lib.mkOption {
@ -83,9 +83,9 @@
# "file where we need to look for password to connect, needs to be readeable by the service user";
# };
# };
config = lib.mkIf config.myModule.enable {
config = lib.mkIf config.calDavToCsv.enable {
environment.etc."config.ini".text = ''
${lib.toIni config.myService.config}
${lib.toIni config.calDavToCsv.config}
'';
systemd.services.calDAVtoCSV = {
description = "calDAV to CSV Service";