diff --git a/flake.nix b/flake.nix index fc85f28..83048b1 100644 --- a/flake.nix +++ b/flake.nix @@ -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";